child property

The component that will be positioned by this component. The child will be automatically mounted to the current component.

Implementation

PositionComponent? get child => _child;
void child=(PositionComponent? value)

Implementation

set child(PositionComponent? value) {
  if (_child?.parent == this) {
    _child?.removeFromParent();
  }
  _child = value;
  _child?.parent = this;
  _updateChildAnchor();
  _updateChildPosition();
}