TextTrack constructor

TextTrack({
  1. required int trackId,
  2. TrackType trackType = TrackType.text,
  3. required String language,
})

Creates an instance of TextTrack.

The language arguments are required.

trackType is TrackType.text.

Implementation

TextTrack({
  required super.trackId,
  super.trackType = TrackType.text,
  required this.language,
});