copyWith method
Create a copy with updated values
Implementation
AudioCompressionOptions copyWith({
int? quality,
String? outputFormat,
bool? keepMetadata,
Map<String, dynamic>? customOptions,
int? sampleRate,
int? channels,
String? audioCodec,
int? bitrate,
}) {
return AudioCompressionOptions(
quality: quality ?? this.quality,
outputFormat: outputFormat ?? this.outputFormat,
keepMetadata: keepMetadata ?? this.keepMetadata,
customOptions: customOptions ?? this.customOptions,
sampleRate: sampleRate ?? this.sampleRate,
channels: channels ?? this.channels,
audioCodec: audioCodec ?? this.audioCodec,
bitrate: bitrate ?? this.bitrate,
);
}