dispose method

void dispose()

Implementation

void dispose() {
  _cleanupCallback = null;
  UseEvent.withInstance(context)
    ..off(Lifecycle.didMount, _runCallbackAndWatchDependencies)
    ..off(Lifecycle.willUnmount, _runCleanupAndUnwatchDependencies);
  _dependenciesEvent.dispose();
}