removePost method

Future<bool> removePost(
  1. dynamic postId
)

Implementation

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