MediaChatMessage class

Represents a media shared in a chat message.

Constructors

MediaChatMessage({required bool isAudioRecorded, required String mediaCaptionText, required int mediaDownloadStatus, required int mediaDuration, required String mediaFileName, required int mediaFileSize, required String mediaLocalStoragePath, required int mediaProgressStatus, required String mediaThumbImage, required int mediaUploadStatus, required String messageId, required String messageType})
Constructs an instance of MediaChatMessage.
MediaChatMessage.fromJson(Map<String, dynamic> json)
Creates a MediaChatMessage instance from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAudioRecorded bool
Indicates if the audio is recorded.
getter/setter pair
mediaCaptionText String
The caption text of the media.
getter/setter pair
mediaDownloadStatus int
The download status of the media.
getter/setter pair
mediaDuration int
The duration of the media.
getter/setter pair
mediaFileName String
The name of the media file.
getter/setter pair
mediaFileSize int
The size of the media file.
getter/setter pair
mediaLocalStoragePath String
The local storage path of the media file.
getter/setter pair
mediaProgressStatus int
The progress status of the media.
getter/setter pair
mediaThumbImage String
The thumbnail image of the media.
getter/setter pair
mediaUploadStatus int
The upload status of the media.
getter/setter pair
messageId String
The unique identifier of the message.
getter/setter pair
messageType String
The type of the message.
getter/setter pair
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
toJson() Map<String, dynamic>
Converts a MediaChatMessage instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited