ChatRoomItem constructor
ChatRoomItem({
- String id = '',
- String createdOn = '',
- String name = '',
- String topic = '',
- String description = '',
- String image = '',
- String ownerId = '',
- int roomType = 0,
- int typeOfGroup = 0,
- int participantCount = 0,
- int unreadCount = 0,
- bool hasUnreadMessage = false,
- bool isFavorite = false,
- ParticipantInfoModel? participantInfo,
- List<
String> tags = const [], - LastMessageModel? lastMessage,
- bool notifyStatus = false,
- List<
LeaveGroupHistoriesModel> leaveGroupHistories = const [], - 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 [],
});