provider

inline fun <Type : Any> provider(): () -> Type

Extracts provider of instances of the selected type.

Return

instance of a provider of objects with the selected type.

Throws

if no provider is registered for the selected type.