lineTo method

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

This creates a line from the currentPath's offset to X and Y and updates the offset to X and Y.

Implementation

ShapePath lineTo(double x, double y) {
  currentPath.lineTo(x, y);
  return this;
}