copyWith method
EpubPackage
copyWith({
- Maybe<
EpubVersion> version = const Maybe.none(), - Maybe<
EpubMetadata> metadata = const Maybe.none(), - Maybe<
EpubManifest> manifest = const Maybe.none(), - Maybe<
EpubSpine> spine = const Maybe.none(), - Maybe<
EpubGuide?> guide = const Maybe.none(),
Implementation
EpubPackage copyWith(
{Maybe<EpubVersion> version = const Maybe.none(),
Maybe<EpubMetadata> metadata = const Maybe.none(),
Maybe<EpubManifest> manifest = const Maybe.none(),
Maybe<EpubSpine> spine = const Maybe.none(),
Maybe<EpubGuide?> guide = const Maybe.none()}) =>
EpubPackage(
version.valueOr(this.version),
metadata.valueOr(this.metadata),
manifest.valueOr(this.manifest),
spine.valueOr(this.spine),
guide.valueOr(this.guide));