closeWindow static method
Removes the window from the screen.
The close method differs in two important ways from the performClose method:
- It does not attempt to send a NSWindowDelegate.windowShouldClose message to its delegates.
- It does not simulate the user clicking the close button by momentarily highlighting the button.
Use performClose if you need these features.
Implementation
static Future<void> closeWindow() async {
await _completer.future;
await _windowManipulatorMethodChannel.invokeMethod('closeWindow');
}