collection.helper library

Functions

getRandomItem<T>(List<T> list) → T?
transformTo2DArray<T>(List<T> array, int columns) List<List<T>>
Transforms a flat list into a 2D list with the given number of columns.