Future<bool> setDouble(String key, double value) { var results = _preferences.setDouble(key, value); if (localKeys.contains(key)) return results; localKeys.add(key); return results; }