ClosedCaptionTrackInfo constructor

const ClosedCaptionTrackInfo(
  1. Uri url,
  2. Language language, {
  3. @Default(false) bool isAutoGenerated,
  4. required ClosedCaptionFormat format,
})

Initializes an instance of ClosedCaptionTrackInfo

Implementation

const factory ClosedCaptionTrackInfo(
  /// Manifest URL of the associated track.
  Uri url,

  /// Language of the associated track.
  Language language, {
  /// Whether the associated track was automatically generated.
  @Default(false) bool isAutoGenerated,

  /// Track format
  required ClosedCaptionFormat format,
}) = _ClosedCaptionTrackInfo;