Add a child node to the hierarchy. If parent is null, the child is added as a root node.
parent
void addChild(FocusNode? parent, FocusNode child);