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