removeShape method
Removes a drawing shape.
Implementation
void removeShape(String id) {
if (!_shapes.any((UDocShape shape) => shape.id == id)) return;
_checkpoint();
_shapes.removeWhere((UDocShape shape) => shape.id == id);
_commit();
}
Removes a drawing shape.
void removeShape(String id) {
if (!_shapes.any((UDocShape shape) => shape.id == id)) return;
_checkpoint();
_shapes.removeWhere((UDocShape shape) => shape.id == id);
_commit();
}