togglePlay method
toggle play the current video
Implementation
Future<void> togglePlay() async {
if (playerStatus.playing) {
pause();
} else {
play();
}
}
toggle play the current video
Future<void> togglePlay() async {
if (playerStatus.playing) {
pause();
} else {
play();
}
}