arcToPoint method Null safety

void arcToPoint (
  1. Offset arcEnd,
  2. {Radius radius:,
  3. double rotation: 0.0,
  4. bool largeArc: false,
  5. 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.


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