has<T extends Object> abstract method

bool has<T extends Object>({
  1. String? name,
})

Checks if an instance of the specified type is registered in the DI container.

If a name is provided, it checks the named instance of the type T.

Implementation

bool has<T extends Object>({String? name});