inline fun <reified R : Any> injectLazyOrNull(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<R?>
Creates a lazy property delegate for an optional instance of type R
.
The instance gets retrieved/created on first property access.
qualifier
- An optional qualifier.
generics
- Preserve generic type parameters.
Return
The created InjectedProperty.