BaseMessage constructor
BaseMessage({
- int id = 0,
- String muid = '',
- User? sender,
- AppEntity? receiver,
- required String receiverUid,
- required String type,
- required String receiverType,
- String category = '',
- DateTime? sentAt,
- DateTime? deliveredAt,
- required DateTime? readAt,
- Map<
String, dynamic> ? metadata, - DateTime? readByMeAt,
- DateTime? deliveredToMeAt,
- DateTime? deletedAt,
- DateTime? editedAt,
- String? deletedBy,
- String? editedBy,
- DateTime? updatedAt,
- String? conversationId,
- int parentMessageId = 0,
- int replyCount = 0,
- int unreadRepliesCount = 0,
- List<
User> mentionedUsers = const [], - List<
ReactionCount> reactions = const [], - bool? hasMentionedMe,
Constructs a new BaseMessage
instance.
Most properties are optional and have default values. Some, such as
receiverUid
, type
, and receiverType
are required.
Implementation
BaseMessage(
{this.id = 0,
this.muid = '',
this.sender,
this.receiver,
required this.receiverUid,
required this.type,
required this.receiverType,
this.category = '',
this.sentAt,
this.deliveredAt,
required this.readAt,
this.metadata,
this.readByMeAt,
this.deliveredToMeAt,
this.deletedAt,
this.editedAt,
this.deletedBy,
this.editedBy,
this.updatedAt,
this.conversationId,
this.parentMessageId = 0,
this.replyCount = 0,
this.unreadRepliesCount = 0,
this.mentionedUsers = const [],
this.reactions = const [],
this.hasMentionedMe});