unlikepost method
Implementation
void unlikepost(Post post) async {
if (likeunlikeProcces.value) {
return;
}
likeunlikeProcces.value = true;
PostUnLikeResponse response =
await service.postsServices.unlike(postID: post.postID);
if (!response.result.status) {
log(response.result.description.toString());
return;
}
post.isLikeme = false;
post.likesCount--;
likeunlikeProcces.value = false;
}