Participant<T extends TrackPublication<Track>> constructor

  1. @internal
Participant<T extends TrackPublication<Track>>(
  1. {required Room room,
  2. required String sid,
  3. required String identity,
  4. 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();
  });
}