IterableDext<T> extension
Iterable extensions.
- on
-
- Iterable<
T>
- Iterable<
Methods
-
all(
bool predicate(T element)) → bool -
Available on Iterable<
ReturnsT> , provided by the IterableDext extensiontrue
if all elements match the givenpredicate
. -
allIndexed(
bool predicate(int index, T element)) → bool -
Available on Iterable<
ReturnsT> , provided by the IterableDext extensiontrue
if all elements match the givenpredicate
. all with index. -
any(
bool predicate(T element)) → bool -
Available on Iterable<
ReturnsT> , provided by the IterableDext extensiontrue
if at least one element matches the givenpredicate
. -
anyIndexed(
bool predicate(int index, T element)) → bool -
Available on Iterable<
ReturnsT> , provided by the IterableDext extensiontrue
if at least one element matches the givenpredicate
. any with index. -
forEachAsync(
Future< void> action(T value)) → Future<void> -
Available on Iterable<
For each element, do something.T> , provided by the IterableDext extension -
forEachIndexed(
void action(int index, T value)) → void -
Available on Iterable<
For each element, do something.T> , provided by the IterableDext extension -
forEachIndexedAsync(
Future< void> action(int index, T value)) → Future<void> -
Available on Iterable<
For each element, do something.T> , provided by the IterableDext extension -
groupBy<
K> (K keySelector(T e)) → Map< K, List< T> > -
Available on Iterable<
Grouping the data.T> , provided by the IterableDext extension -
mapIndexed<
R> (R action(int index, T value)) → Iterable< R> -
Available on Iterable<
Mapping each element to a new one.T> , provided by the IterableDext extension -
toMap<
K, V> (MapEntry< K, V> mapping(T e)) → Map<K, V> -
Available on Iterable<
Mapping each element to a new Map element.T> , provided by the IterableDext extension -
whereIndexed(
bool predicate(int index, T value)) → Iterable< T> -
Available on Iterable<
Filtering elements.T> , provided by the IterableDext extension