copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
Thumbnail copyWith({
ThumbnailFormat? format,
int? width,
int? height,
File? file,
}) =>
Thumbnail(
format: format ?? this.format,
width: width ?? this.width,
height: height ?? this.height,
file: file ?? this.file,
);