dispose method

  1. @mustCallSuper
void dispose()
override

Called when this object is removed

Implementation

@mustCallSuper
void dispose() {
  super.dispose();

  if (_instance != null) {
    Reactter.off(_instance, Lifecycle.destroyed, _onInstanceDestroyed);
  }
  _instance = null;

  Reactter.dispose(this);
}