toggleFullScreen method

void toggleFullScreen(
  1. BuildContext context
)

Implementation

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