lineTo method

Path lineTo(
  1. double x,
  2. double y
)

Connects a LineCurve from currentPoint to x, y onto the path.

Implementation

Path lineTo(double x, double y) {
  final curve = LineCurve(currentPoint.clone(), Vector2(x, y));
  curves.add(curve);
  currentPoint.setValues(x, y);
  return this;
}