copyWith method
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,
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,
);
}