ClosedCaptionTrackInfo class

Metadata associated with a certain ClosedCaptionTrack

Annotations
  • @freezed

Constructors

ClosedCaptionTrackInfo(Uri url, Language language, {@Default(false) bool isAutoGenerated, required ClosedCaptionFormat format})
Initializes an instance of ClosedCaptionTrackInfo
const
factory
ClosedCaptionTrackInfo.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $ClosedCaptionTrackInfoCopyWith<ClosedCaptionTrackInfo>
no setterinherited
format ClosedCaptionFormat
Track format
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAutoGenerated bool
Whether the associated track was automatically generated.
no setterinherited
language Language
Language of the associated track.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
Manifest URL of the associated track.
no setterinherited

Methods

autoTranslate(String lang) ClosedCaptionTrackInfo
Returns this auto-translated to another language. Keeping the same format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited