disposeSingleton<T> abstract method
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});