postLike method

Future<bool> postLike(
  1. bool isLiked,
  2. Post post
)

Implementation

Future<bool> postLike(bool isLiked, Post post) async {
  if (isLiked) {
    if (likeunlikeProcces.value) {
      return isLiked;
    }
    //Beğenmeme fonksiyonu
    unlikepost(post);
  } else {
    likepost(post);
  }
  return !isLiked;
}