togglePlayPause method
Implementation
Future<void> togglePlayPause() async {
if (_isPlaying) {
await pause();
} else {
await play();
}
}
Future<void> togglePlayPause() async {
if (_isPlaying) {
await pause();
} else {
await play();
}
}