youtube_explode/lib/src/models/closed_captions/language.dart

17 lines
371 B
Dart
Raw Normal View History

2020-02-24 14:28:52 +01:00
import 'package:equatable/equatable.dart';
2020-02-23 20:29:08 +01:00
/// Language information.
2020-02-24 14:28:52 +01:00
class Language extends Equatable {
2020-02-23 20:29:08 +01:00
/// ISO 639-1 code of this language.
final String code;
/// Full English name of this language.
final String name;
/// Initializes an instance of [Language]
const Language(this.code, this.name);
2020-02-24 14:28:52 +01:00
@override
List<Object> get props => [code, name];
2020-02-23 20:29:08 +01:00
}