lineTo method

dynamic lineTo(
  1. num x,
  2. num y
)

Implementation

lineTo(num x, num y) {
  var curve = LineCurve(currentPoint.clone(), Vector2(x.toDouble(), y.toDouble()));
  curves.add(curve);

  currentPoint.set(x.toDouble(), y.toDouble());

  return this;
}