removefriend method

Future<void> removefriend(
  1. int userID,
  2. bool isFriend
)

Implementation

Future<void> removefriend(int userID, bool isFriend) async {
  ServiceResult response =
      await service.profileServices.friendremove(userID: userID);
  if (!response.status) {
    log(response.description);
    return;
  }

  isFriend = false;
  buttonremovefriend.value = "Arkadaş Ol";
}