get

open suspend override fun get(key: String): String?

Retrieves the value associated with the given key from DataStore. This operation is performed asynchronously.

Return

The value associated with the key, or null if the key is not found.

Parameters

key

The key for which to retrieve the value.