readString method

String? readString(
  1. String key
)

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;
}