reset static method

void reset({
  1. bool force = false,
})

Disposes of all non-permanent dependencies in the current scope.

  • force: If true, also disposes of permanent dependencies.

Implementation

static void reset({bool force = false}) {
  currentScope.reset(force: force);
}