UserMessageParams class Null safety

An object consists a set of parameters to create/update user message.



UserMessageParams({required String message, int? pollId, List<String>? targetLanguages, String? data, String? customType, PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal, bool isChannelMention = false, MentionType? mentionType, List<String>? mentionedUserIds, List<MessageMetaArray>? metaArrays, bool? replyToChannel, Map<String, dynamic>? extendedMessage, bool isPinnedMessage = false})
UserMessageParams.withMessage(UserMessage userMessage, {bool? deepCopy})


customType String?
Customize message's type to filter
read / writeinherited
data String?
Message data. The default value is null
read / writeinherited
extendedMessage Map<String, dynamic>?
Message Template
read / write
hashCode int
The hash code for this object.
isChannelMention bool
read / write
isPinnedMessage bool
Pinned Message
read / writeinherited
mentionedUserIds List<String>?
Mention to specific users. If sends a message with this field, the message will be arrived to mentioned users.
read / writeinherited
mentionedUsers List<User>?
The list of users who was mentioned together with this message.
read / writeinherited
mentionType MentionType?
Mention type
read / writeinherited
message String
Text message
read / write
metaArrays List<MessageMetaArray>?
Meta array with keys and values
read / writeinherited
parentMessageId int?
The unique ID of a parent message. A parent message is a message that has a thread of replies. If the message sent through the BaseChannel.sendUserMessage or BaseChannel.sendFileMessage method is a parent message, the value of this property is 0. If the message is a reply to a parent message, the value is the message ID of the parent message.
read / writeinherited
pollId int?
Unique ID for a poll
read / write
pushOption PushNotificationDeliveryOption
The push notification delivery option that determines how to deliver the push notification when sending a user or a file message.
read / writeinherited
replyToChannel bool
Allow Reply to Channel The default is false
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
targetLanguages List<String>
The target languages that a message will be translated into
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.


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