togglePlay method
Implementation
Future togglePlay() async {
if (isPlaying()) {
pause(_current!.type);
} else {
play();
}
return Future.value(_media);
}
Future togglePlay() async {
if (isPlaying()) {
pause(_current!.type);
} else {
play();
}
return Future.value(_media);
}