updateOrder method
Updates the order for the current order instance.
Implementation
Future<Order> updateOrder() async {
_checkOrderId();
if (!identical(this, _oldOrderLines)) {
throw StokedError('Cannot update order, since no change in LineItems');
}
Constants.orderId = orderId;
await _perfomOrderApi(Route.updateOrder);
return this;
}