toggleMaximize
Description
Toggles the maximized state of the desktop window. If the window is in full screen, it leaves full screen instead of maximizing. Works on desktop only.
Parameters
None
Returns
Future<void>
Example
$app.toggleMaximize();
Related
$app.isFullScreen()— whether the desktop window is currently in full screen