DVCaptions.track constructor

DVCaptions.track(
  1. String language,
  2. DVMediaSource source, {
  3. String? label,
  4. bool showByDefault = true,
})

One track from a file.

Implementation

DVCaptions.track(String language, DVMediaSource source,
    {String? label, this.showByDefault = true})
    : tracks = List<DVCaptionTrack>.unmodifiable(<DVCaptionTrack>[
        DVCaptionTrack.source(language, source, label: label),
      ]),
      initial = language;