justRead method

dynamic justRead(
  1. String key
)

Implementation

dynamic justRead(String key) {
  var value = prefrences.getString(key);
  if (value == null) return null;
  try {
    return jsonDecode(value);
  } catch (err) {
    debugPrint(err.toString());
  }
}