iterateStocktakeItems method

Stream<StocktakeItem> iterateStocktakeItems({
  1. required String stocktakeId,
  2. bool? openOnly,
  3. int? limit,
  4. String? cursor,
})

Alle Positionen der Abfrage, Seite fuer Seite.

Implementation

Stream<StocktakeItem> iterateStocktakeItems({
  required String stocktakeId,
  bool? openOnly,
  int? limit,
  String? cursor,
}) =>
    _seitenweise(Aufrufe.listStocktakeItems, cursor, (c) async {
      final s = await listStocktakeItems(stocktakeId: stocktakeId, openOnly: openOnly, limit: limit, cursor: c);
      return (eintraege: s.items, nextCursor: s.nextCursor);
    });