copyWith method
VideoTextOverlay
copyWith(
{ - String? id,
- String? text,
- double? x,
- double? y,
- double? fontSize,
- Color? color,
- Duration? startTime,
- Duration? endTime,
- double? rotation,
- double? scale,
- TextOverlayStyle? style,
- Color? backgroundColor,
- bool? bold,
- String? stickerPath,
})
Implementation
VideoTextOverlay copyWith({
String? id,
String? text,
double? x,
double? y,
double? fontSize,
Color? color,
Duration? startTime,
Duration? endTime,
double? rotation,
double? scale,
TextOverlayStyle? style,
Color? backgroundColor,
bool? bold,
String? stickerPath,
}) {
return VideoTextOverlay(
id: id ?? this.id,
text: text ?? this.text,
x: x ?? this.x,
y: y ?? this.y,
fontSize: fontSize ?? this.fontSize,
color: color ?? this.color,
startTime: startTime ?? this.startTime,
endTime: endTime ?? this.endTime,
rotation: rotation ?? this.rotation,
scale: scale ?? this.scale,
style: style ?? this.style,
backgroundColor: backgroundColor ?? this.backgroundColor,
bold: bold ?? this.bold,
stickerPath: stickerPath ?? this.stickerPath,
);
}