readDouble method

double? readDouble(
  1. String key
)

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