ListX<T> extension

Extensions for List.

on

Properties

random → T

Available on List<T>, provided by the ListX extension

Returns a random element from this List.
no setter

Methods

ifEmpty(List<T> value) List<T>

Available on List<T>, provided by the ListX extension

Returns this List if it's not empty, otherwise returns value.
move(T element, int index) → void

Available on List<T>, provided by the ListX extension

Moves the element to the specified index position in this List.
split(int size) Iterable<List<T>>

Available on List<T>, provided by the ListX extension

Splits elements of this List into chunks of size length.