winter / io.jentz.winter.delegate / injectProviderOrNull

injectProviderOrNull

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

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

Parameters

qualifier - An optional qualifier.

generics - Preserve generic type parameters.

Return
The created InjectedProperty.