ListExtensions<T> extension

on

Methods

averageBy(num selector(T)) double?
Example:
forEachIndexed(void action(T element, int index)) → void
Generate forEach but gives index for each element
sumBy(int selector(T)) int
Example:
sumByDouble(num selector(T)) double
Example:
validate() List<T>
Validate given List is not null and returns blank list if null. This should not be used to clear list