removeShape method

void removeShape(
  1. String id
)

Implementation

void removeShape(String id) {
  final int index = _shapes.indexWhere((UDocShape shape) => shape.id == id);
  if (index < 0) return;
  _checkpoint();
  _shapes.removeAt(index);
  _commit();
}