resetScope method

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

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

Implementation

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