MessageReceipt constructor

MessageReceipt({
  1. required int messageId,
  2. required User sender,
  3. required String receiverType,
  4. required String receiverId,
  5. required DateTime timestamp,
  6. required String receiptType,
  7. required DateTime? deliveredAt,
  8. required DateTime? readAt,
})

Constructs a new MessageReceipt instance.

Requires messageId, sender, receiverType, receiverId, timestamp, receiptType, deliveredAt, and readAt to be specified.

Implementation

MessageReceipt(
    {required this.messageId,
    required this.sender,
    required this.receiverType,
    required this.receiverId,
    required this.timestamp,
    required this.receiptType,
    required this.deliveredAt,
    required this.readAt});