closePath method
Implementation
void closePath({Offset? point}) {
assert(hasActivePath);
onDrawEnd?.call();
if (!_activePath!.end(point: point)) {
_paths.removeLast();
}
if (_activePath!.isDot) {
_activePath!.pathState?.refreshState();
}
_activePath = null;
}