putEnumAsString

fun putEnumAsString(key: DataStoreKey, value: Enum<*>?)

Stores the enum in its String representation.

When reading a stored Enum string, call Enum.valueOf() to restore the original Enum.

Parameters

value

if null, does nothing