isRegistered<S> static method

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

Returns true if type S is registered in the current or any parent scope.

Implementation

static bool isRegistered<S>({String? tag}) {
  return currentScope.isRegistered<S>(tag: tag);
}