LastMessageModel constructor

LastMessageModel({
  1. String id = '',
  2. String message = '',
  3. String userId = '',
  4. String fullName = ' ',
  5. String time = '',
  6. String userName = '',
  7. String nickName = '',
  8. String avatar = '',
  9. bool isEdited = false,
  10. String lastEditTime = '',
  11. int type = 0,
  12. List<AttachmentsModel> attachments = const [],
  13. bool isDeleted = false,
})

Implementation

LastMessageModel({
  this.id = '',
  this.message = '',
  this.userId = '',
  this.fullName = ' ',
  this.time = '',
  this.userName = '',
  this.nickName = '',
  this.avatar = '',
  this.isEdited = false,
  this.lastEditTime = '',
  this.type = 0,
  this.attachments = const [],
  this.isDeleted = false,
});