static String? getString(String key, {String? defaultValue}) { String? value = sharedPreferences.getString(key); return value ?? defaultValue; }