ChatMessage constructor

const ChatMessage({
  1. required String text,
  2. required DateTime time,
  3. required ChatAuthor author,
  4. List<ChatMessageSuggestion>? suggestions,
  5. ChatSuggestionSettings? suggestionSettings,
})

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

Implementation

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