static Future<T?> get<T>(String key) async { final prefs = await SharedPreferences.getInstance(); return prefs.get(key) as T?; }