copyWith method

EpubSchema copyWith({
  1. Maybe<EpubPackage> package = const Maybe.none(),
  2. Maybe<EpubNavigation?> navigation = const Maybe.none(),
  3. Maybe<String> contentDirectoryPath = const Maybe.none(),
})

Implementation

EpubSchema copyWith(
        {Maybe<EpubPackage> package = const Maybe.none(),
        Maybe<EpubNavigation?> navigation = const Maybe.none(),
        Maybe<String> contentDirectoryPath = const Maybe.none()}) =>
    EpubSchema(
        package.valueOr(this.package),
        navigation.valueOr(this.navigation),
        contentDirectoryPath.valueOr(this.contentDirectoryPath));