closeWebView function

  1. @Deprecated('Use closeInAppWebView instead')
Future<void> closeWebView()

Closes the current WebView, if one was previously opened via a call to launch.

If launch was never called, then this call will not have any effect.

On Android systems, if launch was called without forceWebView being set to true Or on IOS systems, if launch was called without forceSafariVC being set to true, this call will not do anything either, simply because there is no WebView/SafariViewController available to be closed.

Implementation

@Deprecated('Use closeInAppWebView instead')
Future<void> closeWebView() async {
  return UrlLauncherPlatform.instance.closeWebView();
}