dispose method

  1. @override
void dispose()
override

Equivalent of State.dispose for HookState.

Implementation

@override
void dispose() {
  WidgetsBinding.instance.removeObserver(this);
  super.dispose();
}