dispose method

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

Dispose all bind from the memory

Implementation

@override
@mustCallSuper
void dispose() {
  for (final key in _singletonBinds.keys) {
    var _bind = _singletonBinds[key]!;
    disposeResolverFunc?.call(_bind.value);
  }
  _singletonBinds.clear();
}