endOfSequence property

bool get endOfSequence
Gets a value that indicates whether the current playback position is at the end of the sequence.

Implementation

bool get endOfSequence {
  if (midiFile == null) {
    return true;
  } else {
    return _msgIndex == midiFile!.messages.length;
  }
}