Future<double> getDouble(String key, double def) async { final SharedPreferences prefs = await _prefs; return prefs.getDouble(key) ?? def; }