playOrPause method
Implementation
Future<void> playOrPause() async {
if (isPlaying) {
await pause();
} else {
await _seekToBegin();
await play();
}
}
Future<void> playOrPause() async {
if (isPlaying) {
await pause();
} else {
await _seekToBegin();
await play();
}
}