launchInWebViewWithoutJavaScript function

Future<void> launchInWebViewWithoutJavaScript(
  1. Uri url
)

Launch Uri in InAppWebView withoud javascript.

Implementation

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