lineTo method
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;
}