launchInWebViewWithoutDomStorage function

Future<void> launchInWebViewWithoutDomStorage(
  1. Uri url
)

Launch Uri in InAppWebView withoud DOM Storage.

Implementation

Future<void> launchInWebViewWithoutDomStorage(Uri url) async {
  if (!await launchUrl(
    url,
    mode: LaunchMode.inAppWebView,
    webViewConfiguration: const WebViewConfiguration(
      enableDomStorage: false,
    ),
  )) {
    throw 'Could not launch $url';
  }
}