closeInAppWebView function

Future<void> closeInAppWebView()

Closes the current in-app web view, if one was previously opened by launchUrl.

This works only if supportsCloseForLaunchMode returns true for the mode that was used by launchUrl.

Implementation

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