close static method

Future<void> close()

Closes the currently open browser.

This function will emit a CloseEvent, which can be observed using events.

Only supported on iOS. Will not do anything on other platforms.

Implementation

static Future<void> close() async {
  if (!Platform.isIOS) {
    return;
  }

  await _channel.invokeMethod<void>('close');
}