setValue

suspend fun <T> setValue(key: Preferences.Key<T>, value: T)

Set a preference value

Parameters

key

: The key of the preference

value

: The value of the preference