childAdded method

  1. @override
void childAdded(
  1. Component child
)

Implementation

@override
void childAdded(Component child) {
  super.childAdded(child);
  switch (child.coreType) {
    case DrawRulesBase.typeKey:
      _drawRules = child as DrawRules;

      break;
    case ClippingShapeBase.typeKey:
      _clippingShapes.add(child as ClippingShape);
      addDirt(ComponentDirt.clip, recurse: true);

      break;
  }
  if (child is Constraint) {
    _constraints.add(child);
  }
}