CustomMessage class

Represents a custom chat message.

The CustomMessage class extends BaseMessage and adds additional properties specifically related to a custom message, such as the subType, customData, tags, and conversationText. It also includes boolean flags to determine if the conversation should be updated or a notification should be sent.

Inheritance

Constructors

CustomMessage({String? subType, required Map<String, dynamic>? customData, List<String>? tags, int? id, String? muid, User? sender, AppEntity? receiver, required String receiverUid, required String type, required String receiverType, String? category, DateTime? sentAt, DateTime? deliveredAt, DateTime? readAt, Map<String, dynamic>? metadata, DateTime? readByMeAt, DateTime? deliveredToMeAt, DateTime? deletedAt, DateTime? editedAt, String? deletedBy, String? editedBy, DateTime? updatedAt, String? conversationId, int? parentMessageId, int? replyCount, int? unreadRepliesCount, List<User>? mentionedUsers, bool? hasMentionedMe, List<ReactionCount>? reactions, String? conversationText, bool? updateConversation, bool? sendNotification})
Constructs a new CustomMessage instance.
CustomMessage.fromMap(dynamic map, {AppEntity? receiver})
Creates a new CustomMessage instance from a map.
factory

Properties

category String
getter/setter pairinherited
conversationId String?
getter/setter pairinherited
conversationText String?
getter/setter pair
customData Map<String, dynamic>?
getter/setter pair
deletedAt DateTime?
getter/setter pairinherited
deletedBy String?
getter/setter pairinherited
deliveredAt DateTime?
getter/setter pairinherited
deliveredToMeAt DateTime?
getter/setter pairinherited
editedAt DateTime?
getter/setter pairinherited
editedBy String?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hasMentionedMe bool?
getter/setter pairinherited
id int
getter/setter pairinherited
mentionedUsers List<User>
getter/setter pairinherited
metadata Map<String, dynamic>?
getter/setter pairinherited
muid String
getter/setter pairinherited
parentMessageId int
getter/setter pairinherited
reactions List<ReactionCount>
getter/setter pairinherited
readAt DateTime?
getter/setter pairinherited
readByMeAt DateTime?
getter/setter pairinherited
receiver AppEntity?
getter/setter pairinherited
receiverType String
getter/setter pairinherited
receiverUid String
getter/setter pairinherited
replyCount int
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender User?
getter/setter pairinherited
sendNotification bool?
getter/setter pair
sentAt DateTime?
getter/setter pairinherited
subType String?
getter/setter pair
tags List<String>?
getter/setter pair
type String
getter/setter pairinherited
unreadRepliesCount int
getter/setter pairinherited
updateConversation bool?
getter/setter pair
updatedAt DateTime?
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Generates a map representing the CustomMessage.
override
toString() String
Generates a string representation of the CustomMessage.
override

Operators

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