copyWith method

ConstEpubBookRefData copyWith({
  1. Maybe<Archive> epubArchive = const Maybe.none(),
  2. Maybe<String?> title = const Maybe.none(),
  3. Maybe<String> author = const Maybe.none(),
  4. Maybe<List<String>> authorList = const Maybe.none(),
  5. Maybe<EpubSchema> schema = const Maybe.none(),
})

Implementation

ConstEpubBookRefData copyWith(
        {Maybe<Archive> epubArchive = const Maybe.none(),
        Maybe<String?> title = const Maybe.none(),
        Maybe<String> author = const Maybe.none(),
        Maybe<List<String>> authorList = const Maybe.none(),
        Maybe<EpubSchema> schema = const Maybe.none()}) =>
    ConstEpubBookRefData(
        epubArchive.valueOr(this.epubArchive),
        title.valueOr(this.title),
        author.valueOr(this.author),
        authorList.valueOr(this.authorList),
        schema.valueOr(this.schema));