onCueEnter method
Implementation
@override
void onCueEnter(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;
}
(cue as CueImpl).dispatchEvent(CueEnterEvent(cue: cue));
}