isRegisteredLocally<S> method

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

Returns true if type S is registered in this specific scope.

Implementation

bool isRegisteredLocally<S>({String? tag}) {
  return _registry.containsKey(_getKey<S>(tag));
}