Metadata constructor
Metadata({
- String? identifier,
- String? type,
- required LocalizedString localizedTitle,
- LocalizedString? localizedSubtitle,
- DateTime? modified,
- DateTime? published,
- List<
String> languages = const [], - LocalizedString? localizedSortAs,
- List<
Subject> subjects = const [], - List<
Contributor> authors = const [], - List<
Contributor> contributors = const [], - List<
Contributor> translators = const [], - List<
Contributor> editors = const [], - List<
Contributor> artists = const [], - List<
Contributor> illustrators = const [], - List<
Contributor> letterers = const [], - List<
Contributor> pencilers = const [], - List<
Contributor> colorists = const [], - List<
Contributor> inkers = const [], - List<
Contributor> narrators = const [], - List<
Contributor> publishers = const [], - List<
Contributor> imprints = const [], - String? description,
- double? duration,
- int? numberOfPages,
- Map<
String, List< ? belongsTo,Collection> > - List<
Collection> belongsToCollections = const [], - List<
Collection> belongsToSeries = const [], - ReadingProgression readingProgression = ReadingProgression.auto,
- Presentation? rendition,
- Map<
String, dynamic> otherMetadata = const {},
Implementation
Metadata(
{this.identifier,
this.type,
required this.localizedTitle,
this.localizedSubtitle,
this.modified,
this.published,
this.languages = const [],
this.localizedSortAs,
this.subjects = const [],
this.authors = const [],
this.contributors = const [],
this.translators = const [],
this.editors = const [],
this.artists = const [],
this.illustrators = const [],
this.letterers = const [],
this.pencilers = const [],
this.colorists = const [],
this.inkers = const [],
this.narrators = const [],
this.publishers = const [],
this.imprints = const [],
this.description,
this.duration,
this.numberOfPages,
Map<String, List<Collection>>? belongsTo,
this.belongsToCollections = const [],
this.belongsToSeries = const [],
this.readingProgression = ReadingProgression.auto,
this.rendition,
this.otherMetadata = const {}})
: this.belongsTo = belongsTo ?? {} {
if (belongsToCollections.isNotEmpty) {
this.belongsTo["collection"] = belongsToCollections;
}
if (belongsToSeries.isNotEmpty) {
this.belongsTo["series"] = belongsToSeries;
}
}