stop method

void stop()

Para o que toca (e as notas que ficaram presas).

Implementation

void stop() {
  _playTimer?.cancel();
  _engine?.allNotesOff();
  if (!isClosed) emit(state.copyWith(playing: false));
}