removeMedicineCart method

Future removeMedicineCart(
  1. dynamic skuid
)

Implementation

Future removeMedicineCart(skuid) async {
  var decodedResponse;
  final ApiBody = {"sku_id": '$skuid'};
  var body = jsonEncode(ApiBody);

  http.Response response = await http.post(
      Uri.parse('${WELLNESS_URL}api/medicine/remove-cart-item'),
      headers: {
        "Content-Type": "application/json",
        'Authorization': currentUserToken,
      },
      body: body);
  decodedResponse = json.decode(response.body);
}