getDouble static method

double getDouble(
  1. String key
)

Reads a double for key or returns 0.0.

Implementation

static double getDouble(String key) {
  final double? value = _prefs.getDouble(key);
  return value ?? 0.0;
}