unmount method
Removes this element and disposes of the state.
Implementation
@override
/// Removes this element and disposes of the state.
void unmount() {
state.dispose();
state.internalContext = null;
childElement?.unmount();
super.unmount();
}