toggleFullscreen function
Toggles fullscreen for the Video present in the current BuildContext.
Implementation
Future<void> toggleFullscreen(BuildContext context) {
if (isFullscreen(context)) {
return exitFullscreen(context);
} else {
return enterFullscreen(context);
}
}