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