removeByKey<T> method

void removeByKey<T>({
  1. String dependencyName = "",
})

Removes the dependency with the signature of T and dependencyName.

Implementation

void removeByKey<T>({String dependencyName = ""}) {
  _checkValidation<T>();

  final dependencyKey = _getIdentity<T>(dependencyName);
  _factoryMap.remove(dependencyKey);
}