copyWith method

EpubContentRef copyWith({
  1. Maybe<Map<String, EpubTextContentFileRef>> html = const Maybe.none(),
  2. Maybe<Map<String, EpubTextContentFileRef>> css = const Maybe.none(),
  3. Maybe<Map<String, EpubByteContentFileRef>> images = const Maybe.none(),
  4. Maybe<Map<String, EpubByteContentFileRef>> fonts = const Maybe.none(),
})

Implementation

EpubContentRef copyWith(
        {Maybe<Map<String, EpubTextContentFileRef>> html = const Maybe.none(),
        Maybe<Map<String, EpubTextContentFileRef>> css = const Maybe.none(),
        Maybe<Map<String, EpubByteContentFileRef>> images =
            const Maybe.none(),
        Maybe<Map<String, EpubByteContentFileRef>> fonts =
            const Maybe.none()}) =>
    EpubContentRef(html.valueOr(this.html), css.valueOr(this.css),
        images.valueOr(this.images), fonts.valueOr(this.fonts));