invoke

inline operator fun <Type : Any> invoke(): Type

Provides instance of the selected type. Utility method allowing to call context as a function.

Return

instance of the class with the selected type if a provider is present in the context.

See also