addShape method
Implementation
void addShape(Shape shape) {
if (shape is ClipShape) {
clipItems.add(ClipShapeItem(shape, _shapeStack.length));
} else {
_shapeStack.add(shape);
_registeredGestures.addAll(shape.registeredGestures);
}
}