ListExtensions<T> extension

on

Methods

countWhere(bool test(T)) int

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

Counts the elements for whichs the predicate holds.
forEachIndexed(void f(T element, int index)) → void

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

For each method with provides not only the element but the index as well.
random({int? seed}) → T

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

Return a random element of the list.