copyWith method

  1. @override
VideoCompressionOptions copyWith({
  1. String? outputFormat,
  2. bool? keepMetadata,
  3. Map<String, dynamic>? customOptions,
  4. String? quality,
  5. int? maxWidth,
  6. int? maxHeight,
  7. int? bitrate,
  8. String? videoCodec,
  9. String? audioCodec,
  10. double? frameRate,
  11. 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,
  );
}