LinkPreviewEntry 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
-
addSpaceAfterLeftBracket(
String inputText) → String -
addSpaceBeforeHttp(
String inputText) → String -
getAllLinkPreviewContent(
V2TimMessage message) → Future< List< LinkPreviewContent?> ?> - get the LinkPreviewContent with preview widget and website information for all the links
-
getFirstLinkPreviewContent(
{required V2TimMessage message, ValueChanged< V2TimMessage> ? onUpdateMessage}) → Future<LinkPreviewContent?> -
get the LinkPreviewContent with preview widget and website information for the first link.
If you provide
onUpdateMessage(String linkInfoJson), it can save the link info to local custom data than call updating the message on UI automatically. -
getHyperlinksText(
String messageText, bool isMarkdown, {dynamic onLinkTap(String)?, bool isEnableTextSelection = false, bool isUseQQPackage = false, bool isUseTencentCloudChatPackage = false, List< CustomEmojiFaceData> customEmojiStickerList = const []}) → LinkPreviewText? - get the text message with hyperlinks
-
linkInfoToString(
LocalCustomDataModel linkInfo) → String -
replaceSingleNewlineWithTwo(
String inputText) → String