performClose static method

Future<void> performClose()

Simulates the user clicking the close button by momentarily highlighting the button and then closing the window.

Implementation

static Future<void> performClose() async {
  await _completer.future;
  await _windowManipulatorMethodChannel.invokeMethod('performClose');
}