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);
}
parent = null;
}