MessageObject class

A class that represents a message object with various attributes.

Constructors

MessageObject({required String toJid, required String messageType, String? textMessage, String? replyMessageId, double? latitude, double? longitude, String? contactName, List<String>? contactNumbers, String? file, String? fileName, String? caption, String? base64Thumbnail, String? audioDuration, bool? isAudioRecorded})
Constructs a MessageObject with the required and optional parameters.

Properties

audioDuration String?
The duration of an audio message.
getter/setter pair
base64Thumbnail String?
The base64 encoded thumbnail for an image or video message.
getter/setter pair
caption String?
The caption for an image or video message.
getter/setter pair
contactName String?
The name of the contact for a contact message.
getter/setter pair
contactNumbers List<String>?
The phone numbers of the contact for a contact message.
getter/setter pair
file String?
The file path for a file message.
getter/setter pair
fileName String?
The name of the file for a file message.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAudioRecorded bool?
Indicates if the audio is recorded.
getter/setter pair
latitude double?
The latitude for a location message.
getter/setter pair
longitude double?
The longitude for a location message.
getter/setter pair
messageType String
The type of the message (e.g., text, image, video).
getter/setter pair
replyMessageId String?
The ID of the message being replied to.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textMessage String?
The text content of the message.
getter/setter pair
toJid String
The JID (Jabber ID) of the recipient.
getter/setter pair

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