logOut static method

Future logOut()

Implementation

static Future logOut()async{

  final SharedPreferences prefs = await SharedPreferences.getInstance();

  await prefs.remove("token");
  await prefs.remove("user");
  return {"status": true, "message":"Logout successful"};

}