Skip to content

Commit b126036

Browse files
committed
Update participant_collection.dart
1 parent 9460eb1 commit b126036

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/core/participant_collection.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class ParticipantCollection<T extends Participant> extends IterableBase<T> {
3535
bool containsIdentity(String identity) => _byIdentity.containsKey(identity);
3636
bool containsSid(String sid) => _bySid.containsKey(sid);
3737

38+
void clear() {
39+
_byIdentity.clear();
40+
_bySid.clear();
41+
}
42+
3843
Iterable<T> removeAll() {
3944
final copy = _byIdentity.values.toList();
4045
_byIdentity.clear();

0 commit comments

Comments
 (0)