copyWith method

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

Implementation

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