unmount method
void
unmount()
Removes this element from the tree and releases resources.
Implementation
void unmount() {
if (widget.key case final GlobalKey key) {
key._unregister(this);
}
_clearDependencies();
}