MessageModel constructor

MessageModel({
  1. required String? message,
  2. DateTime? time,
  3. bool read = false,
  4. required int senderId,
  5. String? media,
  6. String? type,
  7. String? replyDocId,
  8. required String? doc,
})

Implementation

MessageModel(
    {required this.message,
    this.time,
    this.read = false,
    required this.senderId,
    this.media,
    this.type,
    this.replyDocId,
    required this.doc});