unbind method

  1. @override
  2. @mustCallSuper
void unbind()
inherited

Removes the reference to the object instance

Implementation

@override
@mustCallSuper
void unbind() {
  assert(!_isDisposed, "Can't unbind when it's been disposed");

  if (_instanceBinded == null) return;

  eventHandler.off(_instanceBinded!, Lifecycle.deleted, _onInstanceDeleted);
  _instanceBinded = null;
}