update method

  1. @override
void update(
  1. int dirt
)
inherited

Implementation

@override
void update(int dirt) {
  super.update(dirt);
  if (dirt & ComponentDirt.clip != 0) {
    // Find clip in parents.
    List<ClippingShape> clippingShapes = [];
    for (ContainerComponent? p = this; p != null; p = p.parent) {
      if (p is TransformComponent) {
        if (p.clippingShapes.isNotEmpty) {
          clippingShapes.addAll(p.clippingShapes);
        }
      }
    }
    _clippingShapes = clippingShapes;
  }
}