ChatMessage constructor

const ChatMessage({
  1. required String text,
  2. required DateTime time,
  3. required ChatAuthor author,
})

Creates a ChatMessage instance with the given text, time, and author.

Implementation

const ChatMessage({
  required this.text,
  required this.time,
  required this.author,
});