UDocShape? shapeById(String id) { for (final UDocShape shape in _shapes) { if (shape.id == id) return shape; } return null; }