forgetChild method
Lets go of child, which a GlobalKey is moving under another
element: this element no longer visits it, and leaves it out when it
next updates its children.
Implementation
@override
void forgetChild(Element child) {
assert(identical(child, _child), '$child is not the child of $this');
_child = null;
}