lineTo method
Draws a straight line from the current drawing position to the specified coordinates using a line segment.
This method adds a line segment to the current path. The line starts from
the last point in the path, and ends at the specified point (x
, y
).
The method returns this, which allows for method chaining.
Implementation
Graphics lineTo(double x, double y) {
_path!.lineTo(x, y);
return this;
}