copyWith method

VideoEditorClip copyWith({
  1. String? id,
  2. File? file,
  3. bool? isImage,
  4. Duration? duration,
  5. Duration? startTime,
  6. Duration? endTime,
  7. double? volume,
  8. double? playbackSpeed,
  9. File? convertedVideoFile,
  10. bool clearConvertedVideoFile = false,
  11. File? proxyVideoFile,
  12. List<File>? thumbnails,
  13. int? editVersion,
  14. VideoEditorEffect? effect,
  15. VideoFillMode? fillMode,
  16. double? cropScale,
  17. double? cropX,
  18. double? cropY,
  19. double? width,
  20. double? height,
  21. Color? backgroundColor,
  22. bool? hasAudio,
  23. ClipTransition? transitionIn,
  24. AudioCleanup? audioCleanup,
})

Implementation

VideoEditorClip copyWith({
  String? id,
  File? file,
  bool? isImage,
  Duration? duration,
  Duration? startTime,
  Duration? endTime,
  double? volume,
  double? playbackSpeed,
  File? convertedVideoFile,
  bool clearConvertedVideoFile = false,
  File? proxyVideoFile,
  List<File>? thumbnails,
  int? editVersion,
  VideoEditorEffect? effect,
  VideoFillMode? fillMode,
  double? cropScale,
  double? cropX,
  double? cropY,
  double? width,
  double? height,
  Color? backgroundColor,
  bool? hasAudio,
  ClipTransition? transitionIn,
  AudioCleanup? audioCleanup,
}) {
  return VideoEditorClip(
    id: id ?? this.id,
    file: file ?? this.file,
    isImage: isImage ?? this.isImage,
    duration: duration ?? this.duration,
    startTime: startTime ?? this.startTime,
    endTime: endTime ?? this.endTime,
    volume: volume ?? this.volume,
    playbackSpeed: playbackSpeed ?? this.playbackSpeed,
    convertedVideoFile: clearConvertedVideoFile
        ? null
        : convertedVideoFile ?? this.convertedVideoFile,
    proxyVideoFile: proxyVideoFile ?? this.proxyVideoFile,
    thumbnails: thumbnails ?? this.thumbnails,
    editVersion: editVersion ?? this.editVersion,
    effect: effect ?? this.effect,
    fillMode: fillMode ?? this.fillMode,
    cropScale: cropScale ?? this.cropScale,
    cropX: cropX ?? this.cropX,
    cropY: cropY ?? this.cropY,
    width: width ?? this.width,
    height: height ?? this.height,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    hasAudio: hasAudio ?? this.hasAudio,
    transitionIn: transitionIn ?? this.transitionIn,
    audioCleanup: audioCleanup ?? this.audioCleanup,
  );
}