disposeSingleton<T> abstract method

T? disposeSingleton<T>({
  1. String? key,
})

Removes the singleton instance.
This does not remove it from the registry tree.
When key is provided it will search the instance that have the same key

Implementation

T? disposeSingleton<T>({String? key});