get
Get a preference with a key. If the key is not set, returns null.
If T is Set
Use MutablePreferences.set to change the value of a preference (inside a DataStore
Parameters
T
the type of the preference
key
the key for the preference
Throws
ClassCastException
if there is something stored with the same name as key but it cannot be cast to T