curveTo method

Graphics curveTo(
  1. double controlX,
  2. double controlY,
  3. double anchorX,
  4. double anchorY,
)

Draws a quadratic Bezier curve from the current drawing position to the specified anchor point (anchorX, anchorY), using the specified control point (controlX, controlY).

The method returns this, which allows for method chaining.

Implementation

Graphics curveTo(
  double controlX,
  double controlY,
  double anchorX,
  double anchorY,
) {
  _path!.quadraticBezierTo(controlX, controlY, anchorX, anchorY);
  return this;
}