IterableX<T> extension
- on
-
- Iterable<
T>
- Iterable<
Properties
- containsNull → bool
-
Available on Iterable<
Returns true if any element is nullT> , provided by the IterableX extensionno setter
Methods
-
chunked(
int size) → Iterable< List< T> > -
Available on Iterable<
Returns chunks of the specified sizeT> , provided by the IterableX extension -
countWhere(
bool test(T element)) → int -
Available on Iterable<
Counts elements that match the testT> , provided by the IterableX extension -
distinct(
) → Iterable< T> -
Available on Iterable<
Returns distinct elements (removes duplicates)T> , provided by the IterableX extension -
distinctBy<
K> (K keyOf(T element)) → Iterable< T> -
Available on Iterable<
Returns distinct elements by a key selectorT> , provided by the IterableX extension -
equalsEach(
Iterable< T> other) → bool -
Available on Iterable<
Checks if this iterable equals another element by elementT> , provided by the IterableX extension -
firstWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
Returns the first element matching the test, or null if none foundT> , provided by the IterableX extension -
forEachIndexed(
void action(int index, T element)) → void -
Available on Iterable<
Usage: list.forEachIndexed((index, item) => print('$index: $item'))T> , provided by the IterableX extension -
groupBy<
K> (K keyOf(T element)) → Map< K, List< T> > -
Available on Iterable<
Groups elements by a key functionT> , provided by the IterableX extension -
lastWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
Returns the last element matching the test, or null if none foundT> , provided by the IterableX extension -
mapIndexed<
R> (R transform(int index, T element)) → Iterable< R> -
Available on Iterable<
Maps with indexT> , provided by the IterableX extension -
whereNotNull(
) → Iterable< T> -
Available on Iterable<
Returns a copy without null values (for nullable types)T> , provided by the IterableX extension