copyWith method

EpubTextContentFileRef copyWith({
  1. Maybe<EpubBookRef> epubBookRef = const Maybe.none(),
  2. Maybe<String> fileName = const Maybe.none(),
  3. Maybe<EpubContentType> contentType = const Maybe.none(),
  4. Maybe<String> contentMimeType = const Maybe.none(),
})

Implementation

EpubTextContentFileRef copyWith(
        {Maybe<EpubBookRef> epubBookRef = const Maybe.none(),
        Maybe<String> fileName = const Maybe.none(),
        Maybe<EpubContentType> contentType = const Maybe.none(),
        Maybe<String> contentMimeType = const Maybe.none()}) =>
    EpubTextContentFileRef(
        epubBookRef.valueOr(this.epubBookRef),
        fileName.valueOr(this.fileName),
        contentType.valueOr(this.contentType),
        contentMimeType.valueOr(this.contentMimeType));