onCueExit method

  1. @override
void onCueExit(
  1. int textTrackUid,
  2. int cueUid
)
override

Implementation

@override
void onCueExit(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(CueExitEvent(cue: cue));
}