reset method
Clears all registered types. Handy when writing unit tests
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> reset({bool dispose = true}) => locator.reset(dispose: dispose);