MessageUtils class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
forMessageTypeIcon (String messageType , [MediaChatMessage ? mediaChatMessage ])
→ Widget
forMessageTypeString (String messageType , {String ? content })
→ String ?
getCallLinkFromMessage (String message )
→ String
split the call link from the message
getColourCode (String name )
→ int
Returns the color code corresponding to the given name.
If the name matches the translated version of "you",
returns the color code for black (0Xff000000).
getDocAsset (String filename )
→ String
Retrieves the corresponding image asset for a given document file type.
getDocumentTypeIcon (String mediaFileName , double size )
→ Widget
Retrieves and displays the appropriate icon for a document type based on the provided media file name.
getMapImageUri (double latitude , double longitude )
→ Uri
Constructs a URI for a static Google Maps image based on the provided latitude and longitude coordinates.
The image will display a map centered at the specified coordinates with a red marker indicating the location.
getMapLaunchUri (double latitude , double longitude )
→ Uri
Generates a Google Maps launch URI based on the provided latitude and longitude coordinates.
getMediaTypeIcon (String mediaType , [bool isAudioRecorded = false ])
→ Widget
Returns an appropriate icon widget based on the provided media type.
getMessageIndicatorIcon (String messageStatus , bool isSender , String messageType , bool isRecalled )
→ Widget
Returns a widget representing the appropriate message indicator icon based on the provided parameters.
writeImageTemp (dynamic bytes , String imageName )
→ Future <File >
mirrorfly_uikit_plugin 2.0.5