copyWith method

VideoTextOverlay copyWith({
  1. String? id,
  2. String? text,
  3. double? x,
  4. double? y,
  5. double? fontSize,
  6. Color? color,
  7. Duration? startTime,
  8. Duration? endTime,
  9. double? rotation,
  10. double? scale,
  11. TextOverlayStyle? style,
  12. Color? backgroundColor,
  13. bool? bold,
  14. 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,
  );
}