deactivateChild method

  1. @protected
void deactivateChild(
  1. Element child
)
inherited

Removes child from the tree: its render objects leave the render tree now, and the owner unmounts it at the end of the frame unless a GlobalKey puts it back before.

Implementation

@protected
void deactivateChild(Element child) {
  child
    .._parent = null
    ..detachRenderObject();
  owner!._deactivate(child);
}