koin-core / org.koin.core.scope / Scope / injectOrNull

injectOrNull

@JvmOverloads inline fun <reified T> injectOrNull(qualifier: Qualifier? = null, noinline parameters: ParametersDefinition? = null): Lazy<T?>

Lazy inject a Koin instance if available

Parameters

qualifier -

scope -

parameters -

Return
Lazy instance of type T or null