idbCursorToList function

Future<List<CursorRow>> idbCursorToList(
  1. Stream<CursorWithValue> stream, {
  2. int? offset,
  3. int? limit,
})

Convert an autoAdvance openCursor stream to a list

Implementation

Future<List<CursorRow>> idbCursorToList(
  Stream<CursorWithValue> stream, {
  int? offset,
  int? limit,
}) => _autoCursorStreamToList(
  stream,
  (cwv) => CursorRow(cwv.key, cwv.primaryKey, cloneValue(cwv.value)),
  offset,
  limit,
);