toggleFullScreen method

void toggleFullScreen(
  1. BuildContext context
)

Implementation

void toggleFullScreen(BuildContext context) {
  if (player.isFullScreen) {
    player.exitFullScreen(context);
  } else {
    player.enterFullScreen(context);
  }
}