closeWebView method

  1. @override
Future<void> closeWebView()
override

Closes the web view, if one was opened earlier by launchUrl.

This will only work if the launch mode (the actual launch mode used, not the requested launch mode, which may not match if supportsMode is false for the requested mode) was one for which supportsCloseForMode returns true.

Implementation

@override
Future<void> closeWebView() {
  return _channel.invokeMethod<void>('closeWebView');
}