closePath method

Graphics closePath()

Closes the current sub-path by drawing a straight line to the starting point of the sub-path.

Implementation

Graphics closePath() {
  _path!.close();
  return this;
}