copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
VectorPathCommandCubicBezierCurve copyWith({
Point? startControlPoint,
Point? endControlPoint,
Point? endPoint,
}) =>
VectorPathCommandCubicBezierCurve(
startControlPoint: startControlPoint ?? this.startControlPoint,
endControlPoint: endControlPoint ?? this.endControlPoint,
endPoint: endPoint ?? this.endPoint,
);