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