ConvertUrl class

ConvertUrl class takes an URL string and transforms it into a format suitable for the WebView. It handles the conversion for both Android and iOS platforms.

Constructors

ConvertUrl(String getUrl)
Constructs a ConvertUrl object. getUrl is the URL to be converted.

Properties

getter/setter pair
appScheme String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
package String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
getter/setter pair

Methods

Returns the application link after conversion. The link is in a format suitable for the WebView.
getMarketUrl() Future<String?>
Returns the URL for the app market, based on the platform (Android or iOS) and the specific application scheme.
Checks whether the given URL is an app link or a web link. Returns true if it's an app link, false otherwise.
launchApp({LaunchMode mode = LaunchMode.externalApplication}) Future<bool>
Attempts to launch the application using the converted URL. If the application cannot be launched, it tries to open the application in the corresponding app market (Google Play for Android, App Store for iOS).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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