fetchOrCreate

fun DataStore.fetchOrCreate(key: String, fallback: () -> String): String

Fetch a key from store, or generate and store a new value if not found

Parameters

key
fallback