unmount method
void
unmount()
Unmounts this element and all descendants.
Implementation
void unmount() {
// Avoid retaining unmounted elements in the dirty set.
_owner?.unscheduleBuildFor(this);
_owner?.releaseMouse(this);
for (final child in _children) {
child.unmount();
}
_children.clear();
parent = null;
}