removeAllMappings<T> method
Removes all the mappings for the given type The remove operation is silent, means no exception is thrown if the type or key combination is not present.
Returns the current injector instance.
Implementation
Injector removeAllMappings<T>() {
final keyForType = _makeKeyPrefix(T);
_factories.removeWhere((key, value) => key.startsWith(keyForType));
return this;
}