exists<T> method
Checks if the dependency with the signature of T
and dependencyName
exists.
Implementation
bool exists<T>({String dependencyName = ""}) {
_checkValidation<T>();
final dependencyKey = _getIdentity<T>(dependencyName);
return _factoryMap.containsKey(dependencyKey);
}