child property

PositionComponent? get child

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

Implementation

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

Implementation

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