cubicCurveTo method

Graphics cubicCurveTo(
  1. double controlX1,
  2. double controlY1,
  3. double controlX2,
  4. double controlY2,
  5. double anchorX,
  6. double anchorY,
)

anchor point (anchorX, anchorY), using the specified control points (controlX1, controlY1) and (controlX2, controlY2).

The curve starts at the current point in the path and ends at (anchorX, anchorY). The two control points determine the shape of the curve.

The method returns this, which allows for method chaining.

Implementation

Graphics cubicCurveTo(
  double controlX1,
  double controlY1,
  double controlX2,
  double controlY2,
  double anchorX,
  double anchorY,
) {
  _path!
      .cubicTo(controlX1, controlY1, controlX2, controlY2, anchorX, anchorY);
  return this;
}