ChatMessage constructor
const
ChatMessage({
- required String text,
- required ChatUser user,
- required DateTime createdAt,
- bool isMarkdown = false,
- List<
ChatMedia> ? media, - List<
ChatRecipe> ? recipes, - List<
ChatDocument> ? documents, - List<
QuickReply> ? quickReplies, - List<
MessageReaction> ? reactions, - Map<
String, dynamic> ? customProperties, - Widget customBuilder()?,
- bool isSending = false,
- bool hasError = false,
- String? errorMessage,
- bool isWelcome = false,
- 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,});