onFullscreenClose method

Future<void> onFullscreenClose([
  1. AsyncCallback? restoreHotkeysCallback
])

Implementation

Future<void> onFullscreenClose(
    [AsyncCallback? restoreHotkeysCallback]) async {
  print("Fullscreen Closed");
  fullscreen.value = false;
  resetBrightness();

  if (UniversalPlatform.isWeb) {
    screenManager.setWebFullScreen(false, this);
  } else {
    if (windows) {
      screenManager.setWindowsFullScreen(false, this);
      HotKeyManager.instance
          .unregisterAll()
          .then((value) => restoreHotkeysCallback?.call());
    } else {
      screenManager.setDefaultOverlaysAndOrientations();
    }
  }
}