copyWith method

  1. @override
VectorPathCommandCubicBezierCurve copyWith({
  1. Point? startControlPoint,
  2. Point? endControlPoint,
  3. Point? endPoint,
})
override

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,
    );