forgetChild method

  1. @override
void forgetChild(
  1. Element child
)
inherited

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;
}