closePath method

void closePath(
  1. {Offset? point}
)

Implementation

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

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

  if (_activePath!.isDot) {
    _activePath!.pathState?.refreshState();
  }

  _activePath = null;
}