cancelOrder method

Future<String> cancelOrder()

Cancels the order and return the status against the current order instance.

Implementation

Future<String> cancelOrder() async {
  _checkOrderId();
  Constants.orderId = orderId;
  return (await _httpService.callApi<NoData>(
          routeValue: RouteMap().routeMapper[Route.cancelOrder]!))
      .status;
}