dispose method

void dispose()

Disposes of the injector instance and removes it from the named collection of injectors

Implementation

void dispose() {
  _factories.clear();
  _injectors.remove(name);
}