isWindowClosureAllowed static method

Future<bool> isWindowClosureAllowed()

Returns whether the window can be closed by the user.

Implementation

static Future<bool> isWindowClosureAllowed() async {
  await _completer.future;
  return await _windowManipulatorMethodChannel
      .invokeMethod('isWindowClosureAllowed');
}