readValue method
- String key
Read a String
variable from Share Preference with the key key
Return value
in String
if value was found
Return null
if is empty
Implementation
Future<String> readValue(String key) async {
final SharedPreferences prefs = await _prefs;
String value = prefs.getString(key);
return value;
}