getDouble method

double? getDouble(
  1. String key
)

Reads a value from persistent storage, throwing an exception if it's not a double.

Implementation

double? getDouble(String key) => _preferenceCache[key] as double?;