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