closePath method
Closes active path at given point
.
Implementation
void closePath({Offset? point}) {
assert(hasActivePath);
if (!_activePath!.end(point: point)) {
_paths.removeLast();
}
_activePath = null;
notifyListeners();
}
Closes active path at given point
.
void closePath({Offset? point}) {
assert(hasActivePath);
if (!_activePath!.end(point: point)) {
_paths.removeLast();
}
_activePath = null;
notifyListeners();
}