fun readStringAsFlow(key: String, defaultStringValue: String = ""): Flow<String>
Flow support for getting a String value from SharedPreferences
key
- the key provided to find the stored value
IllegalStateException
- when the method inside throws an error of type
java.lang.ClassCastException
Return
Flow the data of type Flow if found if not returns an empty String by default
See Also