lazy method

Stream<TRow> lazy({
  1. int size = 500,
})

chunkById as a row stream.

Implementation

Stream<TRow> lazy({int size = 500}) async* {
  await for (final batch in chunkById(size: size)) {
    for (final row in batch) {
      yield row;
    }
  }
}