MessageReceipt class

Represents a message receipt within the chat.

This class includes properties that encapsulate details of a message receipt, including the messageId, sender, receiverType, receiverId, timestamp, receiptType, deliveredAt time, and readAt time.

Constructors

MessageReceipt({required int messageId, required User sender, required String receiverType, required String receiverId, required DateTime timestamp, required String receiptType, required DateTime? deliveredAt, required DateTime? readAt})
Constructs a new MessageReceipt instance.
MessageReceipt.fromMap(dynamic map)
Creates a new MessageReceipt instance from a map.
factory

Properties

deliveredAt DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messageId int
getter/setter pair
readAt DateTime?
getter/setter pair
receiptType String
getter/setter pair
receiverId String
getter/setter pair
receiverType String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender User
getter/setter pair
timestamp DateTime
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Generates a string representation of the MessageReceipt.
override

Operators

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