unmaximizeWindow function

Future unmaximizeWindow()

Implementation

Future unmaximizeWindow() async {
  if (isDesktopPlatform() && await windowManager.isMaximized()) {
    debugPrint("unmaximizeWindow()");
    await windowManager.unmaximize();
  }
}