setMode method
Sets mode of the text track, represented by a value from the following list:
- TextTrackMode.disabled : The track is disabled.
- TextTrackMode.hidden : The track is hidden.
- TextTrackMode.showing : The track is showing.
Remarks:
- A disabled track is not displayed and exposes no active cues, nor fires cue events.
- A hidden track is not displayed but exposes active cues and fires cue events.
- A showing track is displayed, exposes active cues and fires cue events.
Implementation
@override
@mustCallSuper
void setMode(TextTrackMode mode) {
_mode = mode;
}