instance
inline fun <R : Any> instance(key: TypeKey<R> = erased(), noinline block: ComponentBuilderBlock? = null): InjectedProperty<R>(source)
Creates a property delegate for an instance of type R.
Return
The created InjectedProperty.
Parameters
key
The TypeKey of the service to resolve
block
An optional builder block to pass runtime dependencies to the factory.