resetScope abstract method

Future<void> resetScope({
  1. bool dispose = true,
})

Clears all registered types for the current scope in the reverse order of registering them. If you provided dispose function when registering they will be called dispose if false it only resets without calling any dispose functions As dispose functions can be async, you should await this function.

Implementation

Future<void> resetScope({bool dispose = true});