launchInWebViewWithoutDomStorage function
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';
}
}