unmount method
void
unmount()
Removes this element from the tree.
Implementation
void unmount() {
final k = widget.key;
if (k is GlobalKey && GlobalKey.registry[k] == this) {
GlobalKey.registry.remove(k);
}
_mounted = false;
parent = null;
}