moveTo method

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

Starts a new Path and calls Path.moveTo( x, y ) on that Path. Also points ShapePath.currentPath currentPath to that Path.

Implementation

ShapePath moveTo(double x, double y) {
  currentPath = Path(null);
  subPaths.add(currentPath);
  currentPath.moveTo(x, y);
  return this;
}