DirectRoom constructor

const DirectRoom({
  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 isLocal = false,
  10. bool isVerified = false,
  11. String? lastMessage,
  12. bool lastMessageDeleted = false,
  13. String lastMessageId = '',
  14. String lastMessageSenderId = '',
  15. Map<String, MessageStatus> lastMessageStatuses = const {},
  16. Set<String> leaves = const {},
  17. Set<String> mutes = const {},
  18. Set<String> participants = const {},
  19. Set<String> pins = const {},
  20. Map<String, String> removes = const {},
  21. Set<String> restricts = const {},
  22. Map<String, int> unseenCounts = const {},
  23. ChatValueTimestamp updatedAt = const ChatValueTimestamp(),
})

Implementation

const DirectRoom({
  super.archives,
  super.blocks,
  super.createdAt,
  super.createdBy,
  super.extra,
  super.id,
  super.isBot,
  super.isDeleted,
  super.isLocal,
  super.isVerified,
  super.lastMessage,
  super.lastMessageDeleted,
  super.lastMessageId,
  super.lastMessageSenderId,
  super.lastMessageStatuses,
  super.leaves,
  super.mutes,
  super.participants,
  super.pins,
  super.removes,
  super.restricts,
  super.unseenCounts,
  super.updatedAt,
}) : super(isGroup: false);