copyWith method
Creates a copy of this compression, but with the given fields replaced wih the new values.
Implementation
Compression copyWith({
int? quality,
int? minWidth,
int? minHeight,
int? maxFileSize,
CompressFormat? format,
int? inSampleSize,
int? rotate,
bool? autoCorrectionAngle,
bool? keepExif,
int? numberOfRetries,
}) {
return Compression(
maxFileSize: maxFileSize ?? this.maxFileSize,
quality: quality ?? this.quality,
minWidth: minWidth ?? this.minWidth,
minHeight: minHeight ?? this.minHeight,
format: format ?? this.format,
inSampleSize: inSampleSize ?? this.inSampleSize,
rotate: rotate ?? this.rotate,
autoCorrectionAngle: autoCorrectionAngle ?? this.autoCorrectionAngle,
keepExif: keepExif ?? this.keepExif,
numberOfRetries: numberOfRetries ?? this.numberOfRetries,
);
}