HandyListExtensions<E> extension

on

Methods

firstWhereOrNull(bool test(E)) → E?
firstWhereOrNull
groupBy<T>(T keyFunction(E)) Map<T, List<E>>
groupBy
hasDuplicates() bool
hasDuplicates
partition({int chunkSize = 2}) List<List<E>>
partition
randomItem() → E
randomItem
randomItems({int count = 1}) List<E>
randomItems
same(List<E> items) bool
same
splitInto({int chunkSize = 2}) List<List<E>>
splitInto
swap(int index1, int index2) → void
swap
swapRange(int start, int end, int newStart) → void
swapRange