addChild method
Sets the component's parent.
It's not possible to make a parent-child loop. (its ancestor cannot be its child)
You should use it only with setParent on the child's component.
Implementation
void addChild(String childId) {
childrenIds.add(childId);
}