CommsMessage constructor

CommsMessage({
  1. required int id,
  2. int? groupId,
  3. int? senderId,
  4. required String messageContent,
  5. DateTime? createdAt,
  6. DateTime? updatedAt,
  7. CommsUser? sender,
  8. List<CommsReadInfo> readInfo = const [],
  9. List<CommsDeliveryInfo> deliveryInfo = const [],
  10. String overallStatus = 'sent',
  11. List<CommsAttachment> attachments = const [],
  12. List reactions = const [],
  13. CommsMessage? replyTo,
  14. List mentions = const [],
  15. int? messageId,
  16. String? content,
  17. 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,
});