winter / io.jentz.winter.delegate / injectOrNull

injectOrNull

inline fun <reified R : Any> injectOrNull(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<R?>

Creates a property delegate for an optional instance of type R.

Parameters

qualifier - An optional qualifier.

generics - Preserve generic type parameters.

Return
The created InjectedProperty.