ChatMessageModel constructor

ChatMessageModel({
  1. required ChatUserModel sender,
  2. required DateTime timestamp,
})

Constructs a ChatMessageModel instance.

sender: The sender of the message.

timestamp: The timestamp when the message was sent.

Implementation

ChatMessageModel({
  required this.sender,
  required this.timestamp,
});