onFullscreenClose method

Future<void> onFullscreenClose()

Implementation

Future<void> onFullscreenClose() async {
  customDebugPrint("Fullscreen Closed");
  await resetBrightness();

  if (UniversalPlatform.isWeb) {
    await screenManager.setWebFullScreen(false, this);
  } else {
    if (desktopOrWeb) {
      await screenManager.setWindowsFullScreen(false, this);
    } else {
      await screenManager.setDefaultOverlaysAndOrientations();
    }
  }
  fullscreen.value = false;
}