createOrder method

Future<Order> createOrder()

creates an order for the current order instance

Implementation

Future<Order> createOrder() async {
  _updateTotalOrderAmount();
  await _perfomOrderApi(Route.createOrder);
  Constants.orderId = orderId;
  _oldOrderLines = _orderDetails;
  return this;
}