resetInstance method
Clears all registered instances (and/or tags). Even the persistent ones. This should be used at the end or tearDown of unit tests.
clearFactory clears the callbacks registered by lazyPut
clearRouteBindings clears Instances associated with router.
Implementation
bool resetInstance({bool clearRouteBindings = true}) {
if (clearRouteBindings) RouterReportManager.instance.clearRouteKeys();
InjectionExtension._singl.clear();
return true;
}