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