MediaChatMessage class
Represents a media 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 a MediaChatMessage instance.
-
MediaChatMessage.fromJson(Map<
String, dynamic> json) -
Converts a JSON object into a MediaChatMessage instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAudioRecorded ↔ bool
-
Indicates whether 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.
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 ID of the message.
getter/setter pair
- messageType ↔ String
-
The type of 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 into a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited