GraphicsCommandClosePath closePath()

Stop drawing a freeform path.

Source

GraphicsCommandClosePath closePath() {
  var command = new GraphicsCommandClosePath();
  this.addCommand(command);
  return command;
}