CommsMessage constructor
CommsMessage({
- required int id,
- int? groupId,
- int? senderId,
- required String messageContent,
- DateTime? createdAt,
- DateTime? updatedAt,
- CommsUser? sender,
- List<
CommsReadInfo> readInfo = const [], - List<
CommsDeliveryInfo> deliveryInfo = const [], - String overallStatus = 'sent',
- List<
CommsAttachment> attachments = const [], - List reactions = const [],
- CommsMessage? replyTo,
- List mentions = const [],
- int? messageId,
- String? content,
- CommsMessage? lastMessage,
Implementation
CommsMessage({
required this.id,
this.groupId,
this.senderId,
required this.messageContent,
this.createdAt,
this.updatedAt,
this.sender,
this.readInfo = const [],
this.deliveryInfo = const [],
this.overallStatus = 'sent',
this.attachments = const [],
this.reactions = const [],
this.replyTo,
this.mentions = const [],
this.messageId,
this.content,
this.lastMessage,
});