UrlLauncherPlatform class abstract

The interface that implementations of enhanced_url_launcher must implement.

Platform implementations should extend this class rather than implement it as enhanced_url_launcher does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added UrlLauncherPlatform methods.

  • Object
  • PlatformInterface
  • UrlLauncherPlatform


Constructs a UrlLauncherPlatform.


hashCode int
The hash code for this object.
no setterinherited
linkDelegate LinkDelegate?
The delegate used by the Link widget to build itself.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


canLaunch(String url) Future<bool>
Returns true if this platform is able to launch url.
closeWebView() Future<void>
Closes the WebView, if one was opened earlier by launch.
downloadBlob(List<int> bytes, {String? types, String? endings, String? fileName}) → void
getNewWindowLocation(int width, int height) Point<num>
isLastWindowClosed() bool?
launch(String url, {required bool useSafariVC, required bool useWebView, required bool enableJavaScript, required bool enableDomStorage, required bool universalLinksOnly, required Map<String, String> headers, String? webOnlyWindowName, String? webOnlyOptions}) Future<bool>
Passes url to the underlying platform for handling.
launchUrl(String url, LaunchOptions options) Future<bool>
Passes url to the underlying platform for handling.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Properties

instance UrlLauncherPlatform
The default instance of UrlLauncherPlatform to use.
getter/setter pair