Participant<T extends TrackPublication<Track>> constructor
Participant<T extends TrackPublication<Track>>(- {required Room room,
- required String sid,
- required String identity,
- required String name}
)
Implementation
@internal
Participant({
required this.room,
required this.sid,
required this.identity,
required String name,
}) : _name = name {
// Any event emitted will trigger ChangeNotifier
events.listen((event) {
logger.fine('[ParticipantEvent] $event, will notifyListeners()');
notifyListeners();
});
onDispose(() async {
await events.dispose();
await unpublishAllTracks();
});
}