static Future<double> readDouble(String key, [double defaultValue = 0.0]) async { final prefs = await SharedPreferences.getInstance(); return prefs.getDouble(key) ?? defaultValue; }