UrlMatch class
One detected span inside a source string.
Constructors
- UrlMatch({required int start, required int end, required String url, required UrlMatchKind kind})
-
Creates a span with UTF-16
start/endoffsets and a canonicalurl.const
Properties
- end → int
-
Exclusive UTF-16 code-unit offset.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind → UrlMatchKind
-
What kind of thing was detected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
Inclusive UTF-16 code-unit offset.
final
- url → String
-
Canonical URL:
www.x.com→http://www.x.com, phone →tel:<digits>, email →mailto:<addr>. An email or phone whose text holds a bidi control has its scheme and then that text, or the text alone where it starts with that scheme, such astel:+1, a right-to-left mark and5551234567, which XUrl.launch refuses.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override