dropChild method
- covariant AbstractNode child
Disconnect the given node from this node.
Subclasses should call this function when they lose a child.
Implementation
@protected
@mustCallSuper
void dropChild(covariant AbstractNode child) {
assert(child._parent == this);
assert(child.attached == attached);
child._parent = null;
if (attached) {
child.detach();
}
}