isRegistered<T> static method

bool isRegistered<T>({
  1. String? name,
})

Check if a type is registered without throwing an exception Useful for conditional logic and debugging

Parameters:

  • name: Optional name qualifier for named instances

Implementation

static bool isRegistered<T>({String? name}) => registry.containsKey(SpotKey<T>(T, name));