stop method
Para o que toca (e as notas que ficaram presas).
Implementation
void stop() {
_playTimer?.cancel();
_engine?.allNotesOff();
if (!isClosed) emit(state.copyWith(playing: false));
}
Para o que toca (e as notas que ficaram presas).
void stop() {
_playTimer?.cancel();
_engine?.allNotesOff();
if (!isClosed) emit(state.copyWith(playing: false));
}