copyWith method
EpubMetadata
copyWith({
- Maybe<
List< titles = const Maybe.none(),String> > - Maybe<
List< creators = const Maybe.none(),EpubMetadataCreator> > - Maybe<
List< subjects = const Maybe.none(),String> > - Maybe<
String?> description = const Maybe.none(), - Maybe<
List< publishers = const Maybe.none(),String> > - Maybe<
List< contributors = const Maybe.none(),EpubMetadataContributor> > - Maybe<
List< dates = const Maybe.none(),EpubMetadataDate> > - Maybe<
List< types = const Maybe.none(),String> > - Maybe<
List< formats = const Maybe.none(),String> > - Maybe<
List< identifiers = const Maybe.none(),EpubMetadataIdentifier> > - Maybe<
List< sources = const Maybe.none(),String> > - Maybe<
List< languages = const Maybe.none(),String> > - Maybe<
List< relations = const Maybe.none(),String> > - Maybe<
List< coverages = const Maybe.none(),String> > - Maybe<
List< rights = const Maybe.none(),String> > - Maybe<
List< metaItems = const Maybe.none(),EpubMetadataMeta> >
Implementation
EpubMetadata copyWith(
{Maybe<List<String>> titles = const Maybe.none(),
Maybe<List<EpubMetadataCreator>> creators = const Maybe.none(),
Maybe<List<String>> subjects = const Maybe.none(),
Maybe<String?> description = const Maybe.none(),
Maybe<List<String>> publishers = const Maybe.none(),
Maybe<List<EpubMetadataContributor>> contributors =
const Maybe.none(),
Maybe<List<EpubMetadataDate>> dates = const Maybe.none(),
Maybe<List<String>> types = const Maybe.none(),
Maybe<List<String>> formats = const Maybe.none(),
Maybe<List<EpubMetadataIdentifier>> identifiers = const Maybe.none(),
Maybe<List<String>> sources = const Maybe.none(),
Maybe<List<String>> languages = const Maybe.none(),
Maybe<List<String>> relations = const Maybe.none(),
Maybe<List<String>> coverages = const Maybe.none(),
Maybe<List<String>> rights = const Maybe.none(),
Maybe<List<EpubMetadataMeta>> metaItems = const Maybe.none()}) =>
EpubMetadata(
titles.valueOr(this.titles),
creators.valueOr(this.creators),
subjects.valueOr(this.subjects),
description.valueOr(this.description),
publishers.valueOr(this.publishers),
contributors.valueOr(this.contributors),
dates.valueOr(this.dates),
types.valueOr(this.types),
formats.valueOr(this.formats),
identifiers.valueOr(this.identifiers),
sources.valueOr(this.sources),
languages.valueOr(this.languages),
relations.valueOr(this.relations),
coverages.valueOr(this.coverages),
rights.valueOr(this.rights),
metaItems.valueOr(this.metaItems));