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
Methods
-
getAppLink(
) → Future< String?> - 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.
-
isAppLink(
) → bool - Checks whether the given URL is an app link or a web link. Returns true if it's an app link, false otherwise.
-
launchApp(
) → 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