isRegistered<S> method

bool isRegistered<S>({
  1. String? tag,
})

Checks if an instance of S is registered.

Implementation

bool isRegistered<S>({String? tag}) {
  return _factories.containsKey(_getKey(S, tag));
}