setPreventClose method

Future<void> setPreventClose(
  1. bool isPreventClose
)

Set if intercept the native close signal. May useful when combine with the onclose event listener. This will also prevent the manually triggered close event.

Implementation

Future<void> setPreventClose(bool isPreventClose) async {
  final Map<String, dynamic> arguments = {
    'isPreventClose': isPreventClose,
  };
  await _channel.invokeMethod('setPreventClose', arguments);
}