reset abstract method

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

Clears all registered types in the reverse order in which they were registered. Handy when writing unit tests or when disposing services that depend on each other. 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> reset({bool dispose = true});