resetInstance method

bool resetInstance({
  1. bool clearRouteBindings = true,
})

Clears all registered instances (and/or tags). Even the persistent ones. This should be used at the end or tearDown of unit tests.

Implementation

bool resetInstance({bool clearRouteBindings = true}) {
  GetInstanceExt._singletons.clear();

  return true;
}