get

inline fun <T : Any> get(qualifier: Qualifier = TypeQualifier(T::class)): T

A helper function to resolve a dependency from the current scope. This is intended to be used within the create lambda of other dependency definitions.

Return

An instance of the requested dependency T.

Parameters

T

The type of the dependency to retrieve.

qualifier

An optional Qualifier to specify a particular dependency.