close method

  1. @override
void close()
override

Closes the module and all its InjectFactory.

Implementation

@override
void close() {
  _injectMap.forEach((type, factory) {
    if (factory is SingleInjectFactory) {
      Closable.closeWith(factory);
    }
  });
}