shutdown function

void shutdown()

This function can be called to reset the injection context. Every registered service and all singleton instances will be removed.

Implementation

void shutdown() {
  _ContextCollection.shared.shutdown();
}