getOrderStatus method

Future<String> getOrderStatus()

Fetch the order status of the current order instance.

Implementation

Future<String> getOrderStatus() async {
  _checkOrderId();
  Constants.orderId = orderId;
  return (await _httpService.callApi<OrderStatusResponse>(
          routeValue: RouteMap().routeMapper[Route.getOrderStatus]!))
      .data
      .orderStatus;
}