Future<double> getDouble(String key, {double defValue = 0.0}) async{ SharedPreferences pref = _pref!; double value = pref.getDouble(key) ?? defValue; return value; }