Room constructor

const Room({
  1. Set<String> archives = const {},
  2. Set<String> blocks = const {},
  3. ChatValueTimestamp createdAt = const ChatValueTimestamp(),
  4. String createdBy = '',
  5. RoomExtra extra = const {},
  6. String id = '',
  7. bool isBot = false,
  8. bool isDeleted = false,
  9. bool isGroup = false,
  10. bool isLocal = false,
  11. bool isVerified = false,
  12. String? lastMessage,
  13. bool lastMessageDeleted = false,
  14. String lastMessageId = '',
  15. String lastMessageSenderId = '',
  16. Map<String, MessageStatus> lastMessageStatuses = const {},
  17. Set<String> leaves = const {},
  18. Set<String> mutes = const {},
  19. Set<String> participants = const {},
  20. Set<String> pins = const {},
  21. Map<String, String> removes = const {},
  22. Set<String> restricts = const {},
  23. ChatValueTimestamp updatedAt = const ChatValueTimestamp(),
  24. 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;