toggleFullScreen method

void toggleFullScreen(
  1. BuildContext context
)

Toggles the full-screen mode of the application window.

If the current full-screen mode is true, sets the full-screen mode to false and exits the full-screen mode if necessary. Otherwise, sets the full-screen mode to true and enters the full-screen mode.

Parameters:

  • context: A BuildContext object used to access the current widget tree context.

Implementation

void toggleFullScreen(BuildContext context) {
  setFullScreen(!fullscreen.value, context);
}