toggleFullscreen function

Future<void> toggleFullscreen(
  1. BuildContext context
)

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);
  }
}