get<T extends Object> abstract method

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

Retrieves the registered instance of type T from the DI container.

If a name is provided, it retrieves the named instance of the type T. Throws an exception if the instance does not exist.

Implementation

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