Room constructor
const
Room({
- Set<
String> archives = const {}, - Set<
String> blocks = const {}, - ChatValueTimestamp createdAt = const ChatValueTimestamp(),
- String createdBy = '',
- RoomExtra extra = const {},
- String id = '',
- bool isBot = false,
- bool isDeleted = false,
- bool isGroup = false,
- bool isLocal = false,
- bool isVerified = false,
- String? lastMessage,
- bool lastMessageDeleted = false,
- String lastMessageId = '',
- String lastMessageSenderId = '',
- Map<
String, MessageStatus> lastMessageStatuses = const {}, - Set<
String> leaves = const {}, - Set<
String> mutes = const {}, - Set<
String> participants = const {}, - Set<
String> pins = const {}, - Map<
String, String> removes = const {}, - Set<
String> restricts = const {}, - ChatValueTimestamp updatedAt = const ChatValueTimestamp(),
- Map<
String, int> unseenCounts = const {},
Implementation
const Room({
this.archives = const {},
this.blocks = const {},
this.createdAt = const ChatValueTimestamp(),
this.createdBy = '',
this.extra = const {},
this.id = '',
this.isBot = false,
this.isDeleted = false,
this.isGroup = false,
this.isLocal = false,
this.isVerified = false,
this.lastMessage,
this.lastMessageDeleted = false,
this.lastMessageId = '',
this.lastMessageSenderId = '',
this.lastMessageStatuses = const {},
this.leaves = const {},
this.mutes = const {},
this.participants = const {},
this.pins = const {},
this.removes = const {},
this.restricts = const {},
this.updatedAt = const ChatValueTimestamp(),
Map<String, int> unseenCounts = const {},
}) : _unseenCounts = unseenCounts;