detachInstance method

  1. @mustCallSuper
void detachInstance()
inherited

Detaches an object instance to this state.

Implementation

@mustCallSuper
void detachInstance() {
  if (_instanceAttached == null) return;

  Reactter.off(_instanceAttached!, Lifecycle.destroyed, _onInstanceDestroyed);
  _instanceAttached = null;
}