lineTo method

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

Draws a line to the given point.

Implementation

void lineTo(double x, double y) {
  _currentPoint = Point(x, y);
  _points.add(_currentPoint!);
}