removeComment method

Future<bool> removeComment(
  1. dynamic commentId
)

Implementation

Future<bool> removeComment(commentId) {
  Log(
    logName: 'RemoveComment',
    className: 'Comment',
    methodName: 'removeComment',
    type: 'INFO',
    text:
        '{event: Remove Comment, user: ${currentUser?.userPayloadId}, user is ${currentUser?.firstName} ${currentUser?.lastName}, comment id: $commentId',
  );
  return _httpService.removeComment(commentId: commentId).then((data) async {
    if (data.statusCode == 200) {
      return true;
    }
    return false;
  });
}