removeComment method

Future<void> removeComment(
  1. Function deleteFunction
)

Implementation

Future<void> removeComment(Function deleteFunction) async {
  PostRemoveCommentResponse response = await service.postsServices
      .removecomment(commentID: xcomment!.value!.commentID);
  ARMOYUWidget.toastNotification(response.result.description.toString());

  if (!response.result.status) {
    return;
  }

  deleteFunction();
}