addReplyComment method

Future<Response> addReplyComment({
  1. required int? postComments,
  2. required int? user,
  3. required String comment,
})

Implementation

Future<http.Response> addReplyComment({
  required int? postComments,
  required int? user,
  required String comment,
}) {
  var data = json.encode({
    "postComments": postComments,
    "user": user,
    "comment": comment,
  });

  return post(Uri.parse('$apiURL/reply-comments/create'),
      headers: {
        "token":
            "cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve",
        "content-type": 'application/json',
      },
      body: data);
}