lazyInstance
inline fun <R : Any> lazyInstance(key: TypeKey<R> = erased(), noinline block: ComponentBuilderBlock? = null): InjectedProperty<R>(source)
Creates a lazy property delegate for an instance of type R.
The instance gets retrieved/created on first property access.
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.