getOrNull

fun <T : Any> getOrNull(key: KClass<T>): T?

Fetches the singleton instance for the given class key. If no provider has been registered, returns null. Does not invoke onMiss.


inline fun <T : Any> getOrNull(): T?

Fetches the singleton instance for the reified type T. If no provider has been registered, returns null. Does not invoke onMiss.