copyWith method

CompressionOptions copyWith({
  1. String? outputFormat,
  2. bool? keepMetadata,
  3. Map<String, dynamic>? customOptions,
})

Create a copy with updated values

Implementation

CompressionOptions copyWith({
  String? outputFormat,
  bool? keepMetadata,
  Map<String, dynamic>? customOptions,
}) {
  return CompressionOptions(
    outputFormat: outputFormat ?? this.outputFormat,
    keepMetadata: keepMetadata ?? this.keepMetadata,
    customOptions: customOptions ?? this.customOptions,
  );
}