Room constructor
Room({
- required String id,
- Membership membership = Membership.join,
- int notificationCount = 0,
- int highlightCount = 0,
- String? prev_batch,
- required Client client,
- String? notificationSettings,
- Map<
String, BasicRoomEvent> ? roomAccountData, - RoomSummary? summary,
Implementation
Room({
required this.id,
this.membership = Membership.join,
this.notificationCount = 0,
this.highlightCount = 0,
this.prev_batch,
required this.client,
this.notificationSettings,
Map<String, BasicRoomEvent>? roomAccountData,
RoomSummary? summary,
}) : roomAccountData = roomAccountData ?? <String, BasicRoomEvent>{},
summary = summary ??
RoomSummary.fromJson({
'm.joined_member_count': 0,
'm.invited_member_count': 0,
'm.heroes': [],
});