iterateStocktakes method

Stream<Stocktake> iterateStocktakes({
  1. String? status,
  2. String? locationId,
  3. DateTime? updatedSince,
  4. int? limit,
  5. String? cursor,
})

Alle Inventuren der Abfrage, Seite fuer Seite, in der Reihenfolge von listStocktakes.

Implementation

Stream<Stocktake> iterateStocktakes({
  String? status,
  String? locationId,
  DateTime? updatedSince,
  int? limit,
  String? cursor,
}) =>
    _seitenweise(Aufrufe.listStocktakes, cursor, (c) async {
      final s = await listStocktakes(
          status: status, locationId: locationId, updatedSince: updatedSince, limit: limit, cursor: c);
      return (eintraege: s.stocktakes, nextCursor: s.nextCursor);
    });