Action class

This class represents an action performed in the chat.

It extends BaseMessage and includes additional properties related to the action.

Inheritance

Constructors

Action({String? message, String? rawData, String? action, String? oldScope, String? newScope, 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 = const {}, DateTime? readByMeAt, DateTime? deliveredToMeAt, DateTime? deletedAt, DateTime? editedAt, String? deletedBy, String? editedBy, DateTime? updatedAt, String? conversationId, int? parentMessageId, int? replyCount, AppEntity? actionBy, AppEntity? actionOn, AppEntity? actionFor, int? unreadRepliesCount, List<User>? mentionedUsers, bool? hasMentionedMe, BaseMessage? quotedMessage, int? quotedMessageId})
Constructs a new Action instance.
Action.fromMap(dynamic map)
Creates a new instance of the Action class from a map.
factory

Properties

action ↔ String?
The type of the action.
getter/setter pair
actionBy ↔ AppEntity?
The entity by whom the action was performed.
getter/setter pair
actionFor ↔ AppEntity?
The entity for whom the action was performed.
getter/setter pair
actionOn ↔ AppEntity?
The entity on whom the action was performed.
getter/setter pair
category ↔ String
getter/setter pairinherited
conversationId ↔ String?
getter/setter pairinherited
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
message ↔ String?
The message associated with the action.
getter/setter pair
metadata ↔ Map<String, dynamic>?
getter/setter pairinherited
muid ↔ String
getter/setter pairinherited
newScope ↔ String?
The new scope of the action.
getter/setter pair
oldScope ↔ String?
The old scope of the action.
getter/setter pair
parentMessageId ↔ int
getter/setter pairinherited
quotedMessage ↔ BaseMessage?
getter/setter pairinherited
quotedMessageId ↔ int?
getter/setter pairinherited
rawData ↔ String?
The raw data of the action.
getter/setter pair
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
sentAt ↔ DateTime?
getter/setter pairinherited
type ↔ String
getter/setter pairinherited
unreadRepliesCount ↔ int
getter/setter pairinherited
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 BaseMessage.
inherited
toString() → String
Generates a string representation of the Action.
override

Operators

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