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.

clearRouteBindings clears Instances associated with routes.

Implementation

bool resetInstance({bool clearRouteBindings = true}) =>
    GetInstance().resetInstance(clearRouteBindings: clearRouteBindings);