arcToPoint method

Graphics arcToPoint(
  1. double endX,
  2. double endY,
  3. double radius, [
  4. double rotation = 0.0,
  5. bool largeArc = false,
  6. bool clockwise = true,
  7. bool relativeMoveTo = false,
])

Draws an arc from the current point to a given point.

The arc has radius and is tangent to the line from the current point to (endX, endY).

If relativeMoveTo is true, the current point is moved to the endpoint of the arc.

See also:

Implementation

Graphics arcToPoint(
  double endX,
  double endY,
  double radius, [
  double rotation = 0.0,
  bool largeArc = false,
  bool clockwise = true,
  bool relativeMoveTo = false,
]) {
  if (radius == 0) {
    return this;
  }
  if (relativeMoveTo) {
    _path!.arcToPoint(
      Offset(endX, endY),
      radius: Radius.circular(radius),
      clockwise: clockwise,
      largeArc: largeArc,
      rotation: rotation,
    );
  } else {
    _path!.relativeArcToPoint(
      Offset(endX, endY),
      radius: Radius.circular(radius),
      clockwise: clockwise,
      largeArc: largeArc,
      rotation: rotation,
    );
  }
  return this;
}