ChatMessage constructor

ChatMessage({
  1. required String sender,
  2. required String content,
  3. required DateTime timestamp,
  4. String? messageId,
  5. MessageStatus status = MessageStatus.sending,
  6. bool? hasFile,
})

Implementation

ChatMessage({
  required this.sender,
  required this.content,
  required this.timestamp,
  this.messageId,
  this.status = MessageStatus.sending,
  this.hasFile,
});