iterateStock method
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);
});