XUrl class
Link detection in text, with the platform's phones on iOS and Android, plus an OS-handler launcher.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
launch(
String url) → Future< bool> -
Opens
urlvia the OS handler. Returns false on channel error or when no handler can resolve the scheme. -
match(
String text) → List< UrlMatch> -
The web links and emails of
text, and on iOS and Android the phones the platform's detector reads that overlap none of them, sorted by UrlMatch.start and non-overlapping, with UTF-16 offsets. -
openAppSettings(
) → Future< bool> - Opens the OS settings the user needs to grant this app a permission it has denied. Returns false when the settings surface cannot be reached.