retrieveDataOrNull

inline fun <T> retrieveDataOrNull(key: String): T?

Retrieves data of type T or returns null if there is no data stored under the given key.

Prefer using MutableProviders via storedValue instead.


fun <T> retrieveDataOrNull(type: KType, key: String): T?

Retrieves data of the specified type or returns null if there is no data stored under the given key.

Prefer using MutableProviders via storedValue instead.