resetLazySingleton<T extends Object> abstract method

FutureOr resetLazySingleton<T extends Object>({
  1. T? instance,
  2. String? instanceName,
  3. FutureOr disposingFunction(
    1. T
    )?,
})

Clears the instance of a lazy singleton, being able to call the factory function on the next call of get on that type again. you select the lazy Singleton you want to reset by either providing an instance, its registered type T or its registration name. if you need to dispose some resources before the reset, you can provide a disposingFunction. This function overrides the disposing you might have provided when registering.

Implementation

FutureOr resetLazySingleton<T extends Object>({
  T? instance,
  String? instanceName,
  FutureOr Function(T)? disposingFunction,
});