get<T extends Object> abstract method
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});