maximize method

Future<void> maximize({
  1. bool vertically = false,
})

Maximizes the window, or only its height on Windows with vertically.

Implementation

Future<void> maximize({bool vertically = false}) async {
  final window = _target;
  if (window == null) return;
  if (vertically && nativeapi.Window.isVerticalMaximizeSupported()) {
    window.setMaximizedVertically(true);
  } else {
    window.maximize();
  }
}