iterateStock method

Stream<StockLevel> iterateStock({
  1. String? locationId,
  2. String? articleId,
  3. bool? belowMinimum,
  4. DateTime? changedSince,
  5. int? limit,
  6. String? cursor,
})

Alle Bestandszeilen der Abfrage, Seite fuer Seite. Die Werte (values) stehen je Seite in listStock; der Strom liefert nur die Zeilen.

Implementation

Stream<StockLevel> iterateStock({
  String? locationId,
  String? articleId,
  bool? belowMinimum,
  DateTime? changedSince,
  int? limit,
  String? cursor,
}) =>
    _seitenweise(Aufrufe.listStock, cursor, (c) async {
      final s = await listStock(
        locationId: locationId,
        articleId: articleId,
        belowMinimum: belowMinimum,
        changedSince: changedSince,
        limit: limit,
        cursor: c,
      );
      return (eintraege: s.stock, nextCursor: s.nextCursor);
    });