ChatMessage constructor

ChatMessage({
  1. required String id,
  2. required String text,
  3. required String senderId,
  4. String senderName = "User",
  5. required DateTime timestamp,
  6. MessageStatus status = MessageStatus.sending,
  7. int attempt = 0,
})

Implementation

ChatMessage({
  required this.id,
  required this.text,
  required this.senderId,
  this.senderName = "User",
  required this.timestamp,
  this.status = MessageStatus.sending,
  this.attempt = 0,
});