ChatMessage constructor

const ChatMessage({
  1. String? id,
  2. String url = "",
  3. String text = "",
  4. required String type,
  5. required String authorId,
  6. required DateTime createdOn,
})

Implementation

const ChatMessage({
  this.id,
  this.url = "",
  this.text = "",
  required this.type,
  required this.authorId,
  required this.createdOn,
});