readString method
Implementation
String? readString(String key) {
final value = getString(key);
if (value == null) return null;
String? str;
try {
str = jsonDecode(value);
} catch (err) {
debugPrint(err.toString());
}
return str;
}