orders property

Future<Map<String, Order>> get orders

Gets the active orders for the worker. The orders are sorted with the ordering in which the worker should complete them.

Implementation

static Future<Map<String, Order>> get orders async {
  return _invokeSdkMethod<Map<Object?, Object?>>(SdkMethod.getOrders)
      .then((value) {
    return deserializeOrders(
        value,
        (String orderHandle) {
          return _invokeSdkMethod<Map<Object?, Object?>>(
              SdkMethod.getOrderIsInsideGeofence,
              serializeOrderHandle(orderHandle));
        }
    );
  });
}