IterableExtensions<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
averageBy(
num selector(T)) → double -
Available on Iterable<
Calculates the average of a property of each element.T> , provided by the IterableExtensions extension -
containsAll(
Iterable< T> other) → bool -
Available on Iterable<
Whether every element ofT> , provided by the IterableExtensions extensionotheris contained in this iterable. -
containsAny(
Iterable< T> other) → bool -
Available on Iterable<
Whether any element ofT> , provided by the IterableExtensions extensionotheris contained in this iterable. -
countWhere(
bool test(T)) → int -
Available on Iterable<
Number of elements matchingT> , provided by the IterableExtensions extensiontest. -
distinctBy<
K> (K key(T)) → List< T> -
Available on Iterable<
Removes duplicates byT> , provided by the IterableExtensions extensionkeyand returns a new list. -
firstWhereOrNull(
bool test(T)) → T? -
Available on Iterable<
Finds the first element that satisfies a condition, or returnT> , provided by the IterableExtensions extensionnull. -
groupBy<
K> (K keySelector(T)) → Map< K, List< T> > -
Available on Iterable<
Groups elements by a key.T> , provided by the IterableExtensions extension -
insertBetween(
T separator) → List< T> -
Available on Iterable<
InsertsT> , provided by the IterableExtensions extensionseparatorbetween consecutive elements. -
sumBy(
num selector(T)) → num -
Available on Iterable<
Sums the values of a property of each element.T> , provided by the IterableExtensions extension -
zip<
R> (Iterable< R> other) → List<(T, R)> -
Available on Iterable<
Pairs elements withT> , provided by the IterableExtensions extensionother, stopping at the shorter iterable.