ChatTextMessageModel constructor

ChatTextMessageModel({
  1. required ChatUserModel sender,
  2. required DateTime timestamp,
  3. required String text,
})

Constructs a ChatTextMessageModel instance.

sender: The sender of the message.

timestamp: The timestamp when the message was sent.

text: The text content of the message.

Implementation

ChatTextMessageModel({
  required this.sender,
  required this.timestamp,
  required this.text,
});