lazy method

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

chunk as a row stream.

Implementation

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