url_launcher library Null safety

Classes

WebViewConfiguration
Additional configuration options for LaunchMode.inAppWebView.

Functions

canLaunch(String urlString) Future<bool>
Checks whether the specified URL can be handled by some app installed on the device.
@Deprecated('Use canLaunchUrl instead')
canLaunchUrl(Uri url) Future<bool>
Checks whether the specified URL can be handled by some app installed on the device.
closeInAppWebView() Future<void>
Closes the current in-app web view, if one was previously opened by launchUrl.
closeWebView() Future<void>
Closes the current WebView, if one was previously opened via a call to launch.
@Deprecated('Use closeInAppWebView instead')
launch(String urlString, {bool? forceSafariVC, bool forceWebView = false, bool enableJavaScript = false, bool enableDomStorage = false, bool universalLinksOnly = false, Map<String, String> headers = const <String, String>{}, Brightness? statusBarBrightness, String? webOnlyWindowName}) Future<bool>
Parses the specified URL string and delegates handling of it to the underlying platform.
@Deprecated('Use launchUrl instead')
launchUrl(Uri url, {LaunchMode mode = LaunchMode.platformDefault, WebViewConfiguration webViewConfiguration = const WebViewConfiguration(), String? webOnlyWindowName}) Future<bool>
Passes url to the underlying platform for handling.

Enums

LaunchMode
The desired mode to launch a URL.