unmount method

  1. @override
void unmount()
override

Removes this element and its descendants from the tree permanently.

Implementation

@override
void unmount() {
  _detachChildRenderObject();
  _child?.unmount();
  _child = null;
  children.clear();
  super.unmount();
}