dispose method

  1. @mustCallSuper
void dispose()

Called in State object. Called when this State object will never build again. Note: THERE IS NO GUARANTEE THIS METHOD WILL RUN in the Framework.

Implementation

@mustCallSuper
void dispose() {
  _controllers.clear();
  _states.clear();
}