copyWith method

EpubPackage copyWith({
  1. Maybe<EpubVersion> version = const Maybe.none(),
  2. Maybe<EpubMetadata> metadata = const Maybe.none(),
  3. Maybe<EpubManifest> manifest = const Maybe.none(),
  4. Maybe<EpubSpine> spine = const Maybe.none(),
  5. 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));