ChatMessage constructor

const ChatMessage({
  1. required String text,
  2. required ChatUser user,
  3. required DateTime createdAt,
  4. bool isMarkdown = false,
  5. List<ChatMedia>? media,
  6. List<ChatRecipe>? recipes,
  7. List<ChatDocument>? documents,
  8. List<QuickReply>? quickReplies,
  9. List<MessageReaction>? reactions,
  10. Map<String, dynamic>? customProperties,
  11. Widget customBuilder(
    1. BuildContext,
    2. ChatMessage
    )?,
  12. bool isSending = false,
  13. bool hasError = false,
  14. String? errorMessage,
  15. bool isWelcome = false,
  16. bool loadingRecipe = false,
})

Implementation

const ChatMessage({required this.text,
  required this.user,
  required this.createdAt,
  this.isMarkdown = false,
  this.media,
  this.recipes,
  this.documents,
  this.quickReplies,
  this.reactions,
  this.customProperties,
  this.customBuilder,
  this.isSending = false,
  this.hasError = false,
  this.errorMessage,
  this.isWelcome = false, this.loadingRecipe = false,});