onTrackPublished method Null safety

void onTrackPublished(
  1. RemoteParticipant participant,
  2. RemoteTrackPublication publication
)

When a new track is published to room after the current participant has joined. It will not fire for tracks that are already published

Implementation

void onTrackPublished(RemoteParticipant participant, RemoteTrackPublication publication) {}