unmount method

  1. @override
void unmount()
override

Removes this element and disposes of the state.

Implementation

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