chunks method

Iterable<List<T>> chunks(
  1. int size
)

Splits the Iterable into chunks of the specified size

example: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.chunks(3)) result: (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)

Implementation

Iterable<List<T>> chunks(int size) => partition(this, size);