removeShape method

void removeShape(
  1. String id
)

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();
}