copyWith method

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

Implementation

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