IterableExtension<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
all(
ConditionTester< T> test) → bool -
Available on Iterable<
Checks whether all elements of this iterable satisfyT> , provided by the IterableExtension extensiontest
. -
filter(
ConditionTester< T> test) → Iterable<T> -
Available on Iterable<
Filters elements based on a predicate (alias forT> , provided by the IterableExtension extensionwhere
). -
filterWhere(
ConditionTester< T> test) → Iterable<T> -
Available on Iterable<
Filters elements based on a predicate.T> , provided by the IterableExtension extension -
find(
ConditionTester< T> test) → T? -
Available on Iterable<
Finds the first element that satisfies the given predicate.T> , provided by the IterableExtension extension -
findIndex(
ConditionTester< T> test) → int -
Available on Iterable<
Finds the index of the first element that satisfies the given predicate.T> , provided by the IterableExtension extension -
firstWhereOrNull(
ConditionTester< T> test) → T? -
Available on Iterable<
Returns the first element that satisfies the predicate orT> , provided by the IterableExtension extensionnull
if none match. -
flatMap<
E> (Iterable< E> selector(T item)) → Iterable<E> -
Available on Iterable<
Flattens lists of items into a single iterable.T> , provided by the IterableExtension extension -
flatten<
E> (E? selector(T item)) → Iterable< E> -
Available on Iterable<
Transforms each element of the iterable into zero or more elements of typeT> , provided by the IterableExtension extensionE
and flattens the results. -
flattenIterable<
E> (Iterable< E> ? selector(T item)) → Iterable<E> -
Available on Iterable<
Transforms each element of the iterable into zero or more results of typeT> , provided by the IterableExtension extensionE
, and flattens the resulting collections into a single iterable. -
get(
[int index = 0]) → T -
Available on Iterable<
Returns the element at the specified index.T> , provided by the IterableExtension extension -
getFirst(
) → T -
Available on Iterable<
Returns the first element of the iterable.T> , provided by the IterableExtension extension -
getLast(
) → T -
Available on Iterable<
Returns the last element of the iterable.T> , provided by the IterableExtension extension -
group<
K> (K keySelector(T item)) → Map< K, List< T> > -
Available on Iterable<
Groups the elements of the iterable by a key returned from theT> , provided by the IterableExtension extensionkeySelector
function. -
groupBy<
K> (K keySelector(T item)) → Map< K, List< T> > -
Available on Iterable<
Groups elements of this iterable into a Map using the givenT> , provided by the IterableExtension extensionkeySelector
. -
groupByAndMap<
K, V> (K keySelector(T item), V valueSelector(T item)) → Map< K, List< V> > -
Available on Iterable<
Groups elements of this iterable into a Map usingT> , provided by the IterableExtension extensionkeySelector
, and appliesvalueSelector
to each element before storing it. -
indexWhereOrNull(
ConditionTester< T> test) → int? -
Available on Iterable<
Finds the index of an element that satisfies the predicate or returnsT> , provided by the IterableExtension extensionnull
if not found. -
isLengthBetween(
int min, int max) → bool -
Available on Iterable<
Checks if length of double value is BETWEEN minLength to max.T> , provided by the IterableExtension extension -
isLengthEqualTo(
int other) → bool -
Available on Iterable<
Checks if length of double value is EQUAL to max.T> , provided by the IterableExtension extension -
isLengthEt(
int max) → bool -
Available on Iterable<
Short form forT> , provided by the IterableExtension extensionisLengthEqualTo
-
isLengthGreaterThan(
int max) → bool -
Available on Iterable<
Checks if length of double value is GREATER than max.T> , provided by the IterableExtension extension -
isLengthGreaterThanOrEqualTo(
int max) → bool -
Available on Iterable<
Checks if length of double value is GREATER OR EQUAL to max.T> , provided by the IterableExtension extension -
isLengthGt(
int max) → bool -
Available on Iterable<
Short form forT> , provided by the IterableExtension extensionisLengthGreaterThan
-
isLengthGtEt(
int max) → bool -
Available on Iterable<
Short form forT> , provided by the IterableExtension extensionisLengthGreaterThanOrEqualTo
-
isLengthLessThan(
int max) → bool -
Available on Iterable<
Checks if length of double value is LESS than max.T> , provided by the IterableExtension extension -
isLengthLessThanOrEqualTo(
int max) → bool -
Available on Iterable<
Checks if length of double value is LESS OR EQUAL to max.T> , provided by the IterableExtension extension -
isLengthLt(
int max) → bool -
Available on Iterable<
Short form forT> , provided by the IterableExtension extensionisLengthLessThan
-
isLengthLtEt(
int max) → bool -
Available on Iterable<
Short form forT> , provided by the IterableExtension extensionisLengthLessThanOrEqualTo
-
lastWhereOrNull(
ConditionTester< T> test) → T? -
Available on Iterable<
Returns the last element that satisfies the predicate orT> , provided by the IterableExtension extensionnull
if none match. -
none(
ConditionTester< T> test) → bool -
Available on Iterable<
Checks if no element matches the predicate.T> , provided by the IterableExtension extension -
noneMatch(
ConditionTester< T> test) → bool -
Available on Iterable<
Checks if none of the elements match a condition using noneMatch.T> , provided by the IterableExtension extension -
process(
dynamic action(T item)) → void -
Available on Iterable<
Processes each element of the iterable using the providedT> , provided by the IterableExtension extensionaction
function. -
stream(
) → GenericStream< T> -
Available on Iterable<
Converts the iterable to a stream.T> , provided by the IterableExtension extension -
toMap<
K, V> (K keySelector(T item), V valueSelector(T item)) → Map< K, V> -
Available on Iterable<
Maps the iterable to a new iterable using the providedT> , provided by the IterableExtension extensionmapper
function. -
whereOrNull(
ConditionTester< T> test) → Iterable<T> ? -
Available on Iterable<
Returns an iterable with elements that match a condition, orT> , provided by the IterableExtension extensionnull
if none match. -
whereType<
U> () → Iterable< T> -
Available on Iterable<
Filters elements of a specific typeT> , provided by the IterableExtension extensionT
.