copyWith method
VideoEditValues
copyWith({
- Duration? trimStart,
- Duration? trimEnd,
- bool? muted,
- VideoCropGeometry? crop,
- VideoDrawOverlay? overlay,
- bool clearTrimStart = false,
- bool clearTrimEnd = false,
- bool clearCrop = false,
- bool clearOverlay = false,
These values with the given fields replaced.
Implementation
VideoEditValues copyWith({
Duration? trimStart,
Duration? trimEnd,
bool? muted,
VideoCropGeometry? crop,
VideoDrawOverlay? overlay,
bool clearTrimStart = false,
bool clearTrimEnd = false,
bool clearCrop = false,
bool clearOverlay = false,
}) {
return VideoEditValues(
trimStart: clearTrimStart ? null : (trimStart ?? this.trimStart),
trimEnd: clearTrimEnd ? null : (trimEnd ?? this.trimEnd),
muted: muted ?? this.muted,
crop: clearCrop ? null : (crop ?? this.crop),
overlay: clearOverlay ? null : (overlay ?? this.overlay),
);
}