closeWebView function

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.

SafariViewController is only available on IOS version >= 9.0, this method does not do anything on IOS version below 9.0


Future<void> closeWebView() async {
  return await UrlLauncherPlatform.instance.closeWebView();