onTextTrackEnterCue method
Implementation
@override
void onTextTrackEnterCue(int textTrackUid, int cueUid) {
TextTrack? textTrack = _textTracks.firstWhereOrNull((element) => element.uid == textTrackUid);
Cue? cue = textTrack?.cues.firstWhereOrNull((element) => element.uid == cueUid);
if (cue == null) {
return;
}
(textTrack as TextTrackImpl).dispatchEvent(TextTrackEnterCueEvent(cue: cue));
}