ExtensionIterableE<E> extension
Utility extension methods for the native Iterable class.
- on
-
- Iterable<
E>
- Iterable<
Methods
-
all(
bool test(E element)) → bool -
Alias for Iterable
.every
. -
builder<
T> (T builder(E)) → List< T> - Iterable.map.toList()
-
containsAll(
Iterable< E> other, {bool collapseDuplicates = true}) → bool -
Returns true if every element in
other
also exists inthis
. -
containsAny(
Iterable< E> other) → bool -
Returns
true
ifthis
contains at least one element also contained inother
. -
none(
bool test(E element)) → bool -
Returns
true
if no element ofthis
satisfiestest
. -
one(
bool test(E element)) → bool -
Returns
true
if there is exactly one element ofthis
which satisfiestest
. -
sum(
num addend(E)) → num -
Returns the sum of all the values in this iterable, as defined by
addend
.