addShape method

void addShape(
  1. Shape shape
)

Implementation

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