youtube_explode/lib/src/videos/closed_captions/closed_caption_track_info.dart

25 lines
679 B
Dart

import 'package:equatable/equatable.dart';
import 'language.dart';
/// Metadata associated with a certain [ClosedCaptionTrack]
class ClosedCaptionTrackInfo extends Equatable {
/// Manifest URL of the associated track.
final Uri url;
/// Language of the associated track.
final Language language;
/// Whether the associated track was automatically generated.
final bool isAutoGenerated;
/// Initializes an instance of [ClosedCaptionTrackInfo]
const ClosedCaptionTrackInfo(this.url, this.language, {this.isAutoGenerated});
@override
String toString() => 'CC Track ($language)';
@override
List<Object> get props => [url, language, isAutoGenerated];
}