list_chunker

Extension to chunk list

DEMO

Dartpad

List.generate(10, (i) => i).chunk(3)

// [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]]

Libraries

list_chunker