ChatRoomItem constructor

ChatRoomItem({
  1. String id = '',
  2. String createdOn = '',
  3. String name = '',
  4. String topic = '',
  5. String description = '',
  6. String image = '',
  7. String ownerId = '',
  8. int roomType = 0,
  9. int typeOfGroup = 0,
  10. int participantCount = 0,
  11. int unreadCount = 0,
  12. bool hasUnreadMessage = false,
  13. bool isFavorite = false,
  14. ParticipantInfoModel? participantInfo,
  15. List<String> tags = const [],
  16. LastMessageModel? lastMessage,
  17. bool notifyStatus = false,
  18. List<LeaveGroupHistoriesModel> leaveGroupHistories = const [],
  19. List<String> listUserActive = const [],
})

Implementation

ChatRoomItem({
  this.id = '',
  this.createdOn = '',
  this.name = '',
  this.topic = '',
  this.description = '',
  this.image = '',
  this.ownerId = '',
  this.roomType = 0,
  this.typeOfGroup = 0,
  this.participantCount = 0,
  this.unreadCount = 0,
  this.hasUnreadMessage = false,
  this.isFavorite = false,
  this.participantInfo,
  this.tags = const [],
  this.lastMessage,
  this.notifyStatus = false,
  this.leaveGroupHistories = const [],
  this.listUserActive = const [],
});