copyWith method

EpubContent copyWith({
  1. Maybe<Map<String, EpubTextContentFile>> html = const Maybe.none(),
  2. Maybe<Map<String, EpubTextContentFile>> css = const Maybe.none(),
  3. Maybe<Map<String, EpubByteContentFile>> images = const Maybe.none(),
  4. Maybe<Map<String, EpubByteContentFile>> fonts = const Maybe.none(),
})

Implementation

EpubContent copyWith(
        {Maybe<Map<String, EpubTextContentFile>> html = const Maybe.none(),
        Maybe<Map<String, EpubTextContentFile>> css = const Maybe.none(),
        Maybe<Map<String, EpubByteContentFile>> images = const Maybe.none(),
        Maybe<Map<String, EpubByteContentFile>> fonts =
            const Maybe.none()}) =>
    EpubContent(html.valueOr(this.html), css.valueOr(this.css),
        images.valueOr(this.images), fonts.valueOr(this.fonts));