copyWith method

Thumbnail copyWith({
  1. String? fileName,
  2. String? url,
  3. String? relativeUrl,
  4. String? docPassword,
  5. String? contentType,
})

Implementation

Thumbnail copyWith({
  String? fileName,
  String? url,
  String? relativeUrl,
  String? docPassword,
  String? contentType,
}) {
  return Thumbnail(
    fileName: fileName ?? this.fileName,
    url: url ?? this.url,
    relativeUrl: relativeUrl ?? this.relativeUrl,
    docPassword: docPassword ?? this.docPassword,
    contentType: contentType ?? this.contentType,
  );
}