closePath method

void closePath({
  1. Offset? point,
})

Closes active path at given point.

Implementation

void closePath({Offset? point}) {
  assert(hasActivePath);

  if (!_activePath!.end(point: point)) {
    _paths.removeLast();
  }

  _activePath = null;

  notifyListeners();
}