Future<bool> clear() async { // Get SharedPreferences ref SharedPreferences ref = await SharedPreferences.getInstance(); return ref.clear(); }