copyWith method
ImageCompressionOptions
copyWith({
- String? outputFormat,
- bool? keepMetadata,
- Map<
String, dynamic> ? customOptions, - int? quality,
- int? maxWidth,
- int? maxHeight,
- bool? progressive,
- bool? stripMetadata,
- String? format,
override
Create a copy with updated values
Implementation
@override
ImageCompressionOptions copyWith({
String? outputFormat,
bool? keepMetadata,
Map<String, dynamic>? customOptions,
int? quality,
int? maxWidth,
int? maxHeight,
bool? progressive,
bool? stripMetadata,
String? format,
}) {
return ImageCompressionOptions(
outputFormat: outputFormat ?? this.outputFormat,
keepMetadata: keepMetadata ?? this.keepMetadata,
customOptions: customOptions ?? this.customOptions,
quality: quality ?? this.quality,
maxWidth: maxWidth ?? this.maxWidth,
maxHeight: maxHeight ?? this.maxHeight,
progressive: progressive ?? this.progressive,
stripMetadata: stripMetadata ?? this.stripMetadata,
format: format ?? this.format,
);
}