ResetInstance extension

on

Methods

resetInstance({bool clearRouteConnections = true}) bool
Clears all registered instances (and/or tags). Even the persistent ones. This should be used at the end or tearDown of unit tests.