getCartList method

Future getCartList({
  1. dynamic Pincode,
  2. dynamic context,
})

Implementation

Future getCartList({Pincode, context}) async {
  final response = await http.get(
    headers: {'Authorization': SignUpController.currentUserToken},
    Uri.parse('${SDK_BASE_URL}medicine_api/cart/list/${Pincode}'),
  );
  var decodedResponse = json.decode(response.body);
  getDataFromCartManager = await decodedResponse;
}