togglePause method
Toggle pause/resume
Implementation
Future<void> togglePause() async {
if (_isPaused) {
await resume();
} else if (_isPlaying) {
await pause();
}
}
Toggle pause/resume
Future<void> togglePause() async {
if (_isPaused) {
await resume();
} else if (_isPlaying) {
await pause();
}
}