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