copyWith method
EpubBook
copyWith({
- Maybe<
String?> title = const Maybe.none(), - Maybe<
String> author = const Maybe.none(), - Maybe<
List< authorList = const Maybe.none(),String> > - Maybe<
EpubSchema> schema = const Maybe.none(), - Maybe<
EpubContent> content = const Maybe.none(), - Maybe<
Image?> coverImage = const Maybe.none(), - Maybe<
List< chapters = const Maybe.none(),EpubChapter> >
Implementation
EpubBook copyWith(
{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(),
Maybe<EpubContent> content = const Maybe.none(),
Maybe<Image?> coverImage = const Maybe.none(),
Maybe<List<EpubChapter>> chapters = const Maybe.none()}) =>
EpubBook(
title.valueOr(this.title),
author.valueOr(this.author),
authorList.valueOr(this.authorList),
schema.valueOr(this.schema),
content.valueOr(this.content),
coverImage.valueOr(this.coverImage),
chapters.valueOr(this.chapters));