Skip to content

Commit

Permalink
Add metadata map to room (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
alihen authored Apr 19, 2021
1 parent e031d81 commit 67f78c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Room {
this.name,
required this.type,
required this.users,
this.metadata,
});

/// Room's unique ID
Expand All @@ -32,4 +33,7 @@ class Room {

/// List of users which are in the room
final List<User> users;

/// Additional custom metadata or attributes related to the room
final Map<String, dynamic>? metadata;
}

0 comments on commit 67f78c4

Please sign in to comment.