copyWith method
EpubChapterRef
copyWith({
- Maybe<
EpubTextContentFileRef> epubTextContentFileRef = const Maybe.none(), - Maybe<
String> title = const Maybe.none(), - Maybe<
String> contentFileName = const Maybe.none(), - Maybe<
String?> anchor = const Maybe.none(), - Maybe<
List< subChapters = const Maybe.none(),EpubChapterRef> >
Implementation
EpubChapterRef copyWith(
{Maybe<EpubTextContentFileRef> epubTextContentFileRef =
const Maybe.none(),
Maybe<String> title = const Maybe.none(),
Maybe<String> contentFileName = const Maybe.none(),
Maybe<String?> anchor = const Maybe.none(),
Maybe<List<EpubChapterRef>> subChapters = const Maybe.none()}) =>
EpubChapterRef(
epubTextContentFileRef.valueOr(this.epubTextContentFileRef),
title.valueOr(this.title),
contentFileName.valueOr(this.contentFileName),
anchor.valueOr(this.anchor),
subChapters.valueOr(this.subChapters));