arcToPoint method

void arcToPoint (Offset arcEnd, { Radius radius: Radius.zero, double rotation: 0.0, bool largeArc: false bool clockwise: true })

Appends up to four conic curves weighted to describe an oval of radius and rotated by rotation.

The first curve begins from the last point in the path and the last ends at arcEnd. The curves follow a path in a direction determined by clockwise and largeArc in such a way that the sweep angle is always less than 360 degrees.

A simple line is appended if either either radii are zero or the last point in the path is arcEnd. The radii are scaled to fit the last path point if both are greater than zero but too small to describe an arc.

Implementation

void arcToPoint(Offset arcEnd, {
  Radius radius = Radius.zero,
  double rotation = 0.0,
  bool largeArc = false,
  bool clockwise = true,
  }) {
  assert(_offsetIsValid(arcEnd));
  assert(_radiusIsValid(radius));
  _arcToPoint(arcEnd.dx, arcEnd.dy, radius.x, radius.y, rotation,
              largeArc, clockwise);
}