onTrackSubscribed method Null safety

void onTrackSubscribed(
  1. RemoteParticipant participant,
  2. Track track,
  3. RemoteTrackPublication publication
)

The LocalParticipant has subscribed to a new track. This event will always fire as long as new tracks are ready for use.

Implementation

void onTrackSubscribed(
    RemoteParticipant participant, Track track, RemoteTrackPublication publication) {}