resetAllInScope static method

void resetAllInScope()

Resets all pots in the current scope.

This discards all the objects bound to the current scope, and triggers the disposer of each pot.

Calling this does not affect the scope itself. The index number of the current scope stays the same.

See reset for details on a reset of an object.

Implementation

static void resetAllInScope() {
  StaticPot.scopes.clearScope(StaticPot.currentScope, keepScope: true);
}