eventStream property
Implementation
Stream<SimpleAudioNotificationType> eventStream = SimpleAudioPlayerApi.notificationStream.map((event) {
if (event == "onPlay") {
return SimpleAudioNotificationType.onPlay;
} else if (event == "onPause") {
return SimpleAudioNotificationType.onPause;
} else if (event == "onSkipToNext") {
return SimpleAudioNotificationType.onSkipToNext;
} else if (event == "onSkipToPrevious") {
return SimpleAudioNotificationType.onSkipToPrevious;
} else if (event == "onStop") {
return SimpleAudioNotificationType.onStop;
} else {
return SimpleAudioNotificationType.onStop;
}
});