disposeSingleton<T> 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
@override
T? disposeSingleton<T>({String? key}) {
final response = (key == null) ? _disposeSingletonByClasseName(T.toString()) : _disposeSingletonByKey(key);
return response as T?;
}