ChatMessage constructor

ChatMessage({
  1. required String id,
  2. String? provider,
  3. String? accountId,
  4. required String channelId,
  5. required String userId,
  6. required String text,
  7. String? threadId,
  8. required DateTime timestamp,
  9. int? replyCount,
  10. Map<String, Object> extra = const {},
})

Returns a new ChatMessage instance.

Implementation

ChatMessage({
  required this.id,
  this.provider,
  this.accountId,
  required this.channelId,
  required this.userId,
  required this.text,
  this.threadId,
  required this.timestamp,
  this.replyCount,
  this.extra = const {},
});