import 'package:shared_preferences/shared_preferences.dart'; class Session { static Future set(String key, String value) async { SharedPreferences pref = await SharedPreferences.getInstance(); return pref.setString(key, value); } static Future get(String key) async{ SharedPreferences pref = await SharedPreferences.getInstance(); return pref.getString(key); } static Future remove(String key) async{ SharedPreferences pref = await SharedPreferences.getInstance(); return pref.remove(key); } }