Collect selected
property for subtitle tracks
This commit is contained in:
parent
8fa9c0b762
commit
e166b9d789
@ -132,11 +132,13 @@ class Chapter {
|
|||||||
class SubtitleTrack {
|
class SubtitleTrack {
|
||||||
final int id;
|
final int id;
|
||||||
final String title;
|
final String title;
|
||||||
|
final bool selected;
|
||||||
final String? lang;
|
final String? lang;
|
||||||
|
|
||||||
const SubtitleTrack({
|
const SubtitleTrack({
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.title,
|
required this.title,
|
||||||
|
required this.selected,
|
||||||
required this.lang,
|
required this.lang,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -144,6 +146,7 @@ class SubtitleTrack {
|
|||||||
return SubtitleTrack(
|
return SubtitleTrack(
|
||||||
id: json['id'],
|
id: json['id'],
|
||||||
title: json['title'],
|
title: json['title'],
|
||||||
|
selected: json.containsKey('selected') ? json['selected'] : false,
|
||||||
lang: json['lang'],
|
lang: json['lang'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user