inject<T> function

T inject<T>()

Resolves a dependency of type T from the global active Bloom container.

Throws StateError if T has not been registered.

Example

final logger = inject<BloomLogger>();

Implementation

T inject<T>() => globalContainer.inject<T>();