switchFullScreenMode abstract method

Future<void> switchFullScreenMode(
  1. BuildContext context, {
  2. required Widget pageBuilder(
    1. BuildContext
    )?,
  3. void onToggle(
    1. bool
    )?,
})

Switches fullscreen mode for the video player.

  • context is the build context.
  • pageBuilder returns the widget to display in fullscreen.
  • onToggle is called with true when entering and false when exiting fullscreen.

Implementation

Future<void> switchFullScreenMode(
  BuildContext context, {
  required Widget Function(BuildContext)? pageBuilder,
  void Function(bool)? onToggle,
});