getDouble method Null safety

double getDouble(
  1. {String? forKey}
)

Read as double from persistent cache

Implementation

double getDouble({String? forKey}) {
  assert(forKey != null);
  final value = _storage[forKey];
  if (value == null) {
    return 0.0;
  }
  return value;
}