closePath method

void closePath()

Closes the path.

Implementation

void closePath() {
  if (_points.isNotEmpty) {
    _points.add(_points.first);
  }
}