closeFigure method

void closeFigure()

Closes the last figure.

Implementation

void closeFigure() {
  if (_helper.points.isNotEmpty) {
    _helper.points.add(Offset.zero);
    _helper.pathTypes.add(PathPointType.closeSubpath);
  }
  startFigure();
}