onTextTrackExitCue method

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

Implementation

@override
void onTextTrackExitCue(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?.activeCues.remove(cue);
  (textTrack as TextTrackImpl).dispatchEvent(TextTrackExitCueEvent(cue: cue));
}