LinkUtils class
Constructors
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
-
getURLMatches(
String textMessage) → List< String> - Get all the URL from a text message
-
getURLPreview(
List< String> urlMatches) → Future<List< LocalCustomDataModel> > - Get the URL preview information
-
hexToColor(
String hexString) → Color - Get color
-
launchURL(
BuildContext context, String url) → Future< void> - Launch URL
-
saveToLocalAndUpdate(
V2TimMessage message, LocalCustomDataModel previewItem, ValueChanged< V2TimMessage> onUpdateMessage) → Future<void> -
save the link info to local and call updating the message on UI, only works with
onUpdateMessage