MessageParams class

Represents parameters for constructing a message.

Available extensions

Constructors

MessageParams.audio({required String toJid, String? replyMessageId, required FileMessageParams fileMessageParams, List<MessageMetaData> metaData = const [], required bool isRecorded, String topicId = ""})
Constructs a MessageParams object for a Audio message.
factory
MessageParams.contact({required String toJid, String? replyMessageId, required ContactMessageParams contactMessageParams, List<MessageMetaData> metaData = const [], String topicId = ""})
Constructs a MessageParams object for a Contact message.
factory
MessageParams.document({required String toJid, String? replyMessageId, required FileMessageParams fileMessageParams, List<MessageMetaData> metaData = const [], String topicId = ""})
Constructs a MessageParams object for a Document message.
factory
MessageParams.image({required String toJid, String? replyMessageId, required FileMessageParams fileMessageParams, List<MessageMetaData> metaData = const [], String topicId = ""})
Constructs a MessageParams object for a Image message.
factory
MessageParams.location({required String toJid, String? replyMessageId, required LocationMessageParams locationMessageParams, List<MessageMetaData> metaData = const [], String topicId = ""})
Constructs a MessageParams object for a Location message.
factory
MessageParams.text({required String toJid, String? replyMessageId, required TextMessageParams textMessageParams, List<MessageMetaData> metaData = const [], String topicId = ""})
Constructs a MessageParams object for a Text message.
factory
MessageParams.video({required String toJid, String? replyMessageId, required FileMessageParams fileMessageParams, List<MessageMetaData> metaData = const [], String topicId = ""})
Constructs a MessageParams object for a Video message.
factory

Properties

contactMessageParams ContactMessageParams?
Parameters for a contact message, if applicable.
getter/setter pair
fileMessageParams FileMessageParams?
Parameters for a file message, if applicable.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
locationMessageParams LocationMessageParams?
Parameters for a location message, if applicable.
getter/setter pair
messageType MessageType
The type of message, defined by the MessageType enum.
getter/setter pair
metaData List<MessageMetaData>
A list of MessageMetaData objects providing additional information about the message.
getter/setter pair
replyMessageId String?
The ID of the message being replied to, if any.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textMessageParams TextMessageParams?
Parameters for a text message, if applicable.
getter/setter pair
toJid String
The Jabber ID (JID) of the recipient.
getter/setter pair
topicId String
The ID of the topic under which the message is sent, if any.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>

Available on MessageParams, provided by the ExtractMessageParams extension

Converts a MessageParams object into a map.
toString() String
A string representation of this object.
inherited

Operators

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