RepeatIterable<T> class

Creates an iterable whose elements are a single value repeated a specified number of times.

Inheritance
Available extensions

Constructors

RepeatIterable(T element, int count)
Creates an iterable consisting of element repeated count times.

Properties

count int
final
element → T
final
first → T
The first element.
no setterinherited
firstOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The first element of this iterator, or null if the iterable is empty.
no setter
hashCode int
The hash code for this object.
no setterinherited
indexed Iterable<(int, T)>

Available on Iterable<T>, provided by the IterableExtensions extension

Pairs of elements of the indices and elements of this iterable.
no setter
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<T>
A new Iterator that allows iterating the elements of this Iterable.
no setteroverride
last → T
The last element.
no setterinherited
lastOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The last element of this iterable, or null if the iterable is empty.
no setter
length int
The number of elements in this Iterable.
no setterinherited
nonNulls Iterable<T>

Available on Iterable<T?>, provided by the NullableIterableExtensions extension

The non-null elements of this iterable.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single → T
Checks that this iterable has only one element, and returns that element.
no setterinherited
singleOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The single element of this iterator, or null.
no setter
wait Future<List<T>>

Available on Iterable<Future<T>>, provided by the FutureIterable extension

Waits for futures in parallel.
no setter

Methods

aggregate(T aggregator(T aggregate, T select)) → T

Available on Iterable<T>, provided by the AggregateExtension extension

Aggregates the iterable into a single value.
aggregateRight(T aggregator(T aggregate, T element)) → T

Available on Iterable<T>, provided by the AggregateRightExtension extension

Aggregates the iterable into a single value in a right-associative manner.
aggregateRightSelect<TResult>(TResult initialValue, TResult aggregator(TResult aggregate, T element)) → TResult

Available on Iterable<T>, provided by the AggregateRightSelectExtension extension

Aggregates the iterable into a single value in a right-associative manner.
aggregateSelect<TResult>(TResult initialValue, TResult aggregator(TResult aggregate, T element)) → TResult

Available on Iterable<T>, provided by the AggregateSelectExtension extension

Aggregates the iterable into a single value.
all([bool condition(T element)?]) bool

Available on Iterable<T>, provided by the AllExtension extension

Returns true if all elements match a condition and false otherwise.
any(bool test(T element)) bool
Checks whether any element of this iterable satisfies test.
inherited
append(T value) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts an element to the end of the iterable.
append2(T v1, T v2) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts two elements to the end of the iterable.
append3(T v1, T v2, T v3) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts three elements to the end of the iterable.
append4(T v1, T v2, T v3, T v4) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts four elements to the end of the iterable.
append5(T v1, T v2, T v3, T v4, T v5) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts five elements to the end of the iterable.
append6(T v1, T v2, T v3, T v4, T v5, T v6) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts six elements to the end of the iterable.
append7(T v1, T v2, T v3, T v4, T v5, T v6, T v7) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts seven elements to the end of the iterable.
append8(T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts eight elements to the end of the iterable.
append9(T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8, T v9) Iterable<T>

Available on Iterable<T>, provided by the AppendExtension extension

Inserts nine elements to the end of the iterable.
appendAll(Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the AppendAllExtension extension

Inserts all elements in an iterable at the end of this iterable.
asNameMap() Map<String, T>

Available on Iterable<T>, provided by the EnumByName extension

Creates a map from the names of enum values to the values.
assertAll(bool condition(T element), [String? message]) Iterable<T>

Available on Iterable<T>, provided by the AssertAllExtension extension

Asserts that all elements in this iterable meet a given condition. If not, an AssertionError is thrown.
assertAny(bool condition(T element), [String? message]) Iterable<T>

Available on Iterable<T>, provided by the AssertAnyExtension extension

Asserts that any elements in this iterable meet a given condition. If not, an AssertionError is thrown.
assertCount(int count, [String? message]) Iterable<T>

Available on Iterable<T>, provided by the AssertCountExtension extension

Asserts that any elements in this iterable meet a given condition. If not, an AssertionError is thrown.
atLeast(T value, {int sorter(T element, T value)?}) bool

Available on Iterable<T>, provided by the AtLeastExtension extension

Returns true if all elements in the iterable are equal to or greater than value.
atMost(T value, {int sorter(T element, T value)?}) bool

Available on Iterable<T>, provided by the AtMostExtension extension

Returns true if all elements in the iterable are equal to or less than value.
average<TNum extends num>([TNum selector(T value)?]) → TNum

Available on Iterable<T>, provided by the AverageExtension extension

Calculates the average of all numerical values in the iterable.
awaitAll() Future<Iterable<T>>

Available on Iterable<Future<T>>, provided by the AwaitAllExtension extension

Awaits each future in the iterable and returns an iterable of the returned values once all the futures have completed.
awaitAny() Future<T>

Available on Iterable<Future<T>>, provided by the AwaitAnyExtension extension

Awaits each future in the iterable and returns the value of the first future to complete.
batch(int size, {bool includeTail = false}) Iterable<Iterable<T>>

Available on Iterable<T>, provided by the BatchExtension extension

Groups elements in the iterator into batches of size length, optionally truncating elements that don't fit into a full-size batch.
batchSelect<TResult>(int size, TResult selector(List<T> batch), {bool includeTail = false}) Iterable<TResult>

Available on Iterable<T>, provided by the BatchSelectExtension extension

Groups elements in the iterator into batches of size length and puts them through a mapping function, optionally truncating elements that don't fit into a full-size batch.
between(T minimum, T maximum, {int sorter(T value, T element)?, bool minimumInclusive = false, bool maximumInclusive = false}) bool

Available on Iterable<T>, provided by the BetweenExtension extension

Returns true if all elements in the iterable are between minimum and maximum.
byName(String name) → T

Available on Iterable<T>, provided by the EnumByName extension

Finds the enum value in this list with name name.
cartesian<T2>(Iterable<T2> other) Iterable<Tuple2<T, T2>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and other.
cartesian3<T2, T3>(Iterable<T2> o2, Iterable<T3> o3) Iterable<Tuple3<T, T2, T3>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and two other iterables.
cartesian4<T2, T3, T4>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4) Iterable<Tuple4<T, T2, T3, T4>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and three other iterables.
cartesian5<T2, T3, T4, T5>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5) Iterable<Tuple5<T, T2, T3, T4, T5>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and four other iterables.
cartesian6<T2, T3, T4, T5, T6>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6) Iterable<Tuple6<T, T2, T3, T4, T5, T6>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and five other iterables.
cartesian7<T2, T3, T4, T5, T6, T7>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, Iterable<T7> o7) Iterable<Tuple7<T, T2, T3, T4, T5, T6, T7>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and six other iterables.
cartesian8<T2, T3, T4, T5, T6, T7, T8>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, Iterable<T7> o7, Iterable<T8> o8) Iterable<Tuple8<T, T2, T3, T4, T5, T6, T7, T8>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and seven other iterables.
cartesian9<T2, T3, T4, T5, T6, T7, T8, T9>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, Iterable<T7> o7, Iterable<T8> o8, Iterable<T9> o9) Iterable<Tuple9<T, T2, T3, T4, T5, T6, T7, T8, T9>>

Available on Iterable<T>, provided by the CartesianExtension extension

Generates the cartesian product of this iterable and eight other iterables.
cartesianSelect<T2, TResult>(Iterable<T2> other, TResult selector(T element, T2 otherElement)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and other, returning an iterable of mapped elements.
cartesianSelect3<T2, T3, TResult>(Iterable<T2> o2, Iterable<T3> o3, TResult selector(T element, T2 o2Element, T3 o3Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and two other iterables, returning an iterable of mapped elements.
cartesianSelect4<T2, T3, T4, TResult>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, TResult selector(T element, T2 o2Element, T3 o3Element, T4 o4Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and three other iterables, returning an iterable of mapped elements.
cartesianSelect5<T2, T3, T4, T5, TResult>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, TResult selector(T element, T2 o2Element, T3 o3Element, T4 o4Element, T5 o5Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and four other iterables, returning an iterable of mapped elements.
cartesianSelect6<T2, T3, T4, T5, T6, TResult>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, TResult selector(T element, T2 o2Element, T3 o3Element, T4 o4Element, T5 o5Element, T6 o6Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and five other iterables, returning an iterable of mapped elements.
cartesianSelect7<T2, T3, T4, T5, T6, T7, TResult>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, Iterable<T7> o7, TResult selector(T element, T2 o2Element, T3 o3Element, T4 o4Element, T5 o5Element, T6 o6Element, T7 o7Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and six other iterables, returning an iterable of mapped elements.
cartesianSelect8<T2, T3, T4, T5, T6, T7, T8, TResult>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, Iterable<T7> o7, Iterable<T8> o8, TResult selector(T element, T2 o2Element, T3 o3Element, T4 o4Element, T5 o5Element, T6 o6Element, T7 o7Element, T8 o8Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and seven other iterables, returning an iterable of mapped elements.
cartesianSelect9<T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Iterable<T2> o2, Iterable<T3> o3, Iterable<T4> o4, Iterable<T5> o5, Iterable<T6> o6, Iterable<T7> o7, Iterable<T8> o8, Iterable<T9> o9, TResult selector(T element, T2 o2Element, T3 o3Element, T4 o4Element, T5 o5Element, T6 o6Element, T7 o7Element, T8 o8Element, T9 o9Element)) Iterable<TResult>

Available on Iterable<T>, provided by the CartesianSelectExtension extension

Generates the cartesian product of this iterable and eight other iterables, returning an iterable of mapped elements.
cast<R>() Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
compareCount(Iterable other) int

Available on Iterable<T>, provided by the CompareCountExtension extension

Compares the length of this iterable and other and returns an integer representing their comparison.
concat(Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and another iterables.
concat2(Iterable<T> c1, Iterable<T> c2) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and two another iterables.
concat3(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and three another iterables.
concat4(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3, Iterable<T> c4) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and four another iterables.
concat5(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3, Iterable<T> c4, Iterable<T> c5) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and five another iterables.
concat6(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3, Iterable<T> c4, Iterable<T> c5, Iterable<T> c6) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and six another iterables.
concat7(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3, Iterable<T> c4, Iterable<T> c5, Iterable<T> c6, Iterable<T> c7) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and seven another iterables.
concat8(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3, Iterable<T> c4, Iterable<T> c5, Iterable<T> c6, Iterable<T> c7, Iterable<T> c8) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and eight another iterables.
concat9(Iterable<T> c1, Iterable<T> c2, Iterable<T> c3, Iterable<T> c4, Iterable<T> c5, Iterable<T> c6, Iterable<T> c7, Iterable<T> c8, Iterable<T> c9) Iterable<T>

Available on Iterable<T>, provided by the ConcatExtension extension

Concatenates this iterable and nine another iterables.
concatAll(Iterable<Iterable<T>> iterables) Iterable<T>

Available on Iterable<T>, provided by the ConcatAllExtension extension

Concatenates this iterable and a provided iterable of iterables.
consume() → void

Available on Iterable<T>, provided by the ConsumeExtension extension

Fully consumes this iterable.
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
count([bool condition(T element)?]) int

Available on Iterable<T>, provided by the MathConsumerExtensions extension

Returns the number of elements in the iterable.
countBy<TKey>(TKey keySelector(T element)) Iterable<MapEntry<TKey, int>>

Available on Iterable<T>, provided by the CountByExtension extension

Applies keySelector to every element in this iterable and returns an iterable containing each resulting key and the number of times that key appears in this iterable.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>, Iterable<T4>, Iterable<T5>, Iterable<T6>, Iterable<T7>, Iterable<T8>)

Available on Iterable<(T1, T2, T3, T4, T5, T6, T7, T8)>, provided by the Deconstruct8Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>, Iterable<T4>, Iterable<T5>, Iterable<T6>, Iterable<T7>, Iterable<T8>, Iterable<T9>)

Available on Iterable<(T1, T2, T3, T4, T5, T6, T7, T8, T9)>, provided by the Deconstruct9Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T>)

Available on Iterable<(T)>, provided by the Deconstruct1Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>)

Available on Iterable<(T1, T2)>, provided by the Deconstruct2Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>)

Available on Iterable<(T1, T2, T3)>, provided by the Deconstruct3Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>, Iterable<T4>)

Available on Iterable<(T1, T2, T3, T4)>, provided by the Deconstruct4Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>, Iterable<T4>, Iterable<T5>)

Available on Iterable<(T1, T2, T3, T4, T5)>, provided by the Deconstruct5Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>, Iterable<T4>, Iterable<T5>, Iterable<T6>)

Available on Iterable<(T1, T2, T3, T4, T5, T6)>, provided by the Deconstruct6Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
deconstruct() → (Iterable<T1>, Iterable<T2>, Iterable<T3>, Iterable<T4>, Iterable<T5>, Iterable<T6>, Iterable<T7>)

Available on Iterable<(T1, T2, T3, T4, T5, T6, T7)>, provided by the Deconstruct7Extension extension

Takes this iterable of records and deconstructs it into a record of iterables.
defaultIfEmpty(T defaultVal) Iterable<T>

Available on Iterable<T>, provided by the DefaultIfEmptyExtension extension

Returns a new iterable containing defaultVal if this iterable is empty. Otherwise, the source iterable will be unaffected.
defaultRangeIfEmpty(Iterable<T> defaultVal) Iterable<T>

Available on Iterable<T>, provided by the DefaultRangeIfEmptyExtension extension

Returns this iterable, or defaultVal if this iterable is empty.
distinct([Object keySelector(T element)?]) Iterable<T>

Available on Iterable<T>, provided by the DistinctExtension extension

Returns an iterable representing the distinct values of this iterable.
elementAt(int index) → T
Returns the indexth element.
inherited
elementAtOrDefault(int index, {required T defaultValue}) → T

Available on Iterable<T>, provided by the ElementAtOrDefaultExtension extension

Returns the element at the specified index or a default value of one is not found.
elementAtOrNull(int index) → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The element at position index of this iterable, or null.
endsWith(Iterable<T> other, {bool comparer(T value, T otherValue)?}) bool

Available on Iterable<T>, provided by the EndsWithExtension extension

Returns true if this iterable ends with the same elements that are in other.
every(bool test(T element)) bool
Checks whether every element of this iterable satisfies test.
inherited
except(Iterable<T> other, [Object selector(T element)?]) Iterable<T>

Available on Iterable<T>, provided by the ExceptExtension extension

Returns the set difference between the iterable and the given collection.
exclude(T value, {bool comparer(T value, T element)?}) Iterable<T>

Available on Iterable<T>, provided by the ExcludeExtension extension

Returns all elements in this iterable except those that are equal to the specified value.
excludeAt(int index) Iterable<T>

Available on Iterable<T>, provided by the ExcludeAtExtension extension

Returns all elements in this iterable except the element at index.
excludeRange(int start, int count) Iterable<T>

Available on Iterable<T>, provided by the ExcludeRangeExtension extension

Returns all elements in this iterable except those that are within the specified range.
expand<T>(Iterable<T> toElements(T element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
fillBackward() Iterable<T>

Available on Iterable<T?>, provided by the FillBackwardExtension extension

Returns this iterable with all null values replaced with the next non-null element following it.
fillForward() Iterable<T>

Available on Iterable<T?>, provided by the FillForwardExtension extension

Returns this iterable with all null values replaced with the first non-null element preceeding it.
fillMissing(T value) Iterable<T>

Available on Iterable<T?>, provided by the FillMissingExtension extension

Returns this iterable with all null values replaced with the specified value.
firstOrDefault({T? defaultValue}) → T?

Available on Iterable<T>, provided by the FirstOrDefaultExtension extension

Returns the first element in the iterable.
firstWhere(bool test(T element), {T orElse()?}) → T
The first element that satisfies the given predicate test.
inherited
firstWhereOrDefault(bool condition(T value), {T? defaultValue}) → T?

Available on Iterable<T>, provided by the FirstWhereOrDefaultExtension extension

Returns the first element in the iterable matching a specified condition, or a default value if none is found.
flatten() Iterable<T>

Available on Iterable<Iterable<T>>, provided by the FlattenExtension extension

Flattens this iterable of iterables into a single iterable.
fold<T>(T initialValue, T combine(T previousValue, T element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<T> other) Iterable<T>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(T element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
groupBy<TKey>(TKey keySelector(T element), {EqualityComparer<TKey>? keyComparer}) GroupByIterable<T, TKey>

Available on Iterable<T>, provided by the GroupByExtension extension

Groups the elements in the iterable by a key.
groupByValue<TKey, TValue>({TKey keySelector(T element)?, TValue valueSelector(T element)?, EqualityComparer<TKey>? keyComparer}) GroupByValueIterable<T, TKey, TValue>

Available on Iterable<T>, provided by the GroupByValueExtension extension

Groups the elements in the iterable by a key and maps the elements to a new value.
groupJoin<TInner, TKey, TResult>(Iterable<TInner> inner, TResult resultSelector(T element, Iterable<TInner> other), {TKey outerKeySelector(T element)?, TKey innerKeySelector(TInner otherElement)?, EqualityComparer<TKey>? keyComparer}) GroupJoinIterable<T, TInner, TKey, TResult>

Available on Iterable<T>, provided by the GroupJoinExtension extension

Joins elements in the iterable with a group of all elements in the inner collection that match the generated key.
groupSelect<TKey, TResult>(TResult resultSelector(TKey key, Iterable<T> group), {TKey keySelector(T key)?, EqualityComparer<TKey>? keyComparer}) GroupSelectIterable<T, TKey, TResult>

Available on Iterable<T>, provided by the GroupSelectExtension extension

Groups the elements in the iterable by a key and maps the groups to a new element.
groupSelectValue<TKey, TValue, TResult>(TResult resultSelector(TKey key, Iterable<TValue> group), {TKey keySelector(T element)?, TValue valueSelector(T element)?, EqualityComparer<TKey>? keyComparer}) GroupSelectValueIterable<T, TKey, TValue, TResult>

Available on Iterable<T>, provided by the GroupSelectValueExtension extension

Groups the elements in the iterable by a key, maps the elements to a new value, and maps the groups to a new element.
index([int startIndex = 0, bool descending = false]) Iterable<MapEntry<int, T>>

Available on Iterable<T>, provided by the IndexExtension extension

Returns an iterable of MapEntry representing the elements in this iterable combined with the zero-based index where the element was found.
insert(int index, T value) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts an element into the iterable at the specified index.
insert2(int index, T v1, T v2) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts two elements into the iterable at the specified index.
insert3(int index, T v1, T v2, T v3) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts three elements into the iterable at the specified index.
insert4(int index, T v1, T v2, T v3, T v4) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts four elements into the iterable at the specified index.
insert5(int index, T v1, T v2, T v3, T v4, T v5) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts five elements into the iterable at the specified index.
insert6(int index, T v1, T v2, T v3, T v4, T v5, T v6) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts six elements into the iterable at the specified index.
insert7(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts seven elements into the iterable at the specified index.
insert8(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts eight elements into the iterable at the specified index.
insert9(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8, T v9) Iterable<T>

Available on Iterable<T>, provided by the InsertExtension extension

Inserts nine elements into the iterable at the specified index.
insertAll(int index, Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the InsertAllExtension extension

Inserts all elements from another iterable into this iterable at the specified index.
insertOrAppend(int index, T value) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts an element into the iterable at the specified index.
insertOrAppend2(int index, T v1, T v2) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts two elements into the iterable at the specified index.
insertOrAppend3(int index, T v1, T v2, T v3) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts three elements into the iterable at the specified index.
insertOrAppend4(int index, T v1, T v2, T v3, T v4) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts four elements into the iterable at the specified index.
insertOrAppend5(int index, T v1, T v2, T v3, T v4, T v5) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts five elements into the iterable at the specified index.
insertOrAppend6(int index, T v1, T v2, T v3, T v4, T v5, T v6) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts six elements into the iterable at the specified index.
insertOrAppend7(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts seven elements into the iterable at the specified index.
insertOrAppend8(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts eight elements into the iterable at the specified index.
insertOrAppend9(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8, T v9) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendExtension extension

Inserts nine elements into the iterable at the specified index.
insertOrAppendAll(int index, Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the InsertOrAppendAll extension

Inserts all elements from another iterable into this iterable at the specified index.
interleave(Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the InterleaveExtension extension

Returns the elements of this iterable interleaved with the elements of other.
interleaveAll(Iterable<Iterable<T>> others) Iterable<T>

Available on Iterable<T>, provided by the InterleaveAllExtension extension

Returns the elements of this iterable interleaved with the elements of every iterable in others.
intersect(Iterable<T> other, [Object selector(T element)?]) Iterable<T>

Available on Iterable<T>, provided by the IntersectExtension extension

Returns the set intersection between the iterable and the given collection.
join([String separator = ""]) String
Converts each element to a String and concatenates the strings.
inherited
joinMap<TInner, TKey, TResult>(Iterable<TInner> inner, TResult resultSelector(T element, TInner otherElement), {TKey outerKeySelector(T element)?, TKey innerKeySelector(TInner otherElement)?, EqualityComparer<TKey>? keyComparer}) Iterable<TResult>

Available on Iterable<T>, provided by the JoinMapExtension extension

Finds keys in this iterable with matching keys in the inner collection and returns a value that is the result of the corresponding elements being merged.
lag(int offset, {required T defaultValue}) Iterable<Iterable<T>>

Available on Iterable<T>, provided by the LagExtension extension

Returns an iterable that projects the elements in this iterable upon other elements in this iterable offset backwards by a given value.
lagSelect<TResult>(int offset, TResult selector(T element, T laggedElement), {required T defaultValue}) Iterable<TResult>

Available on Iterable<T>, provided by the LagSelectExtension extension

Returns an iterable that projects the elements in this iterable upon other elements in this iterable offset backwards by a given value.
lastOrDefault({T? defaultValue}) → T?

Available on Iterable<T>, provided by the LastOrDefaultExtension extension

Returns the last element in the iterable.
lastWhere(bool test(T element), {T orElse()?}) → T
The last element that satisfies the given predicate test.
inherited
lastWhereOrDefault(bool condition(T element), {T? defaultValue}) → T?

Available on Iterable<T>, provided by the LastWhereOrDefaultExtension extension

Returns the last element in the iterable matching a specified condition, or a default value if none is found.
lead(int offset, {required T defaultValue}) Iterable<Iterable<T>>

Available on Iterable<T>, provided by the LeadExtension extension

Returns an iterable that projects the elements in this iterable upon other elements in this iterable offset forwards by a given value.
leadSelect<TResult>(int offset, TResult selector(T leadedElement, T element), {required T defaultValue}) Iterable<TResult>

Available on Iterable<T>, provided by the LeadSelectExtension extension

Returns an iterable that projects the elements in this iterable upon other elements in this iterable offset forwards by a given value.
map<T>(T toElement(T e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
max([int comparer(T e1, T e2)?]) → T

Available on Iterable<T>, provided by the MaxExtension extension

Returns the maximum value in the iterable.
memoize() Iterable<T>

Available on Iterable<T>, provided by the MemoizeExtension extension

Returns an iterable whose elements are cached during the first iteration.
min([int comparer(T e1, T e2)?]) → T

Available on Iterable<T>, provided by the MinExtension extension

Returns the minimum value in the iterable.
move(int from, int count, int to) Iterable<T>

Available on Iterable<T>, provided by the MoveExtension extension

Moves a range of elements in this iterable to a new position, offsetting other elements to compensate.
nonNull() Iterable<T>

Available on Iterable<T?>, provided by the NonNullExtension extension

Returns this iterable with all null values excluded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ofType<TOther>() Iterable<TOther>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to the specified type.
ofType2<T1, T2>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType3<T1, T2, T3>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType4<T1, T2, T3, T4>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType5<T1, T2, T3, T4, T5>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType6<T1, T2, T3, T4, T5, T6>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType7<T1, T2, T3, T4, T5, T6, T7>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType8<T1, T2, T3, T4, T5, T6, T7, T8>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
ofType9<T1, T2, T3, T4, T5, T6, T7, T8, T9>() Iterable<T>

Available on Iterable<T>, provided by the OfTypeExtension extension

Returns all elements in the iterable that are castable to one of the specified types.
orderBy<TKey>(TKey keySelector(T element), {EqualityComparer<TKey>? keyComparer}) Iterable<T>

Available on Iterable<T>, provided by the OrderByExtension extension

Sorts the iteration in ascending (least-to-greatest) order.
orderByDescending<TKey>(TKey keySelector(T element), {EqualityComparer<TKey>? keyComparer}) Iterable<T>

Available on Iterable<T>, provided by the OrderByDescendingExtension extension

Sorts the iteration in descending (greatest-to-least) order.
padEnd(int length, {required T padding}) Iterable<T>

Available on Iterable<T>, provided by the PadEndExtension extension

Pads the iterable to be at least length, adding padding to the end as needed to guarantee the length.
padStart(int length, {required T padding}) Iterable<T>

Available on Iterable<T>, provided by the InsertionIterableExtensions extension

Pads the iterable to be at least length, adding padding to the start as needed to guarantee the length.
pairwise() Iterable<Tuple2<T, T>>

Available on Iterable<T>, provided by the PairwiseExtension extension

Returns an iterable that pairs every element with the element before it.
partition(bool condition(T element)) Iterable<Iterable<T>>

Available on Iterable<T>, provided by the PartitionExtension extension

Returns an iterable containing two iterables, one containing the elements that match the condition and one containing those that do not.
permutations() Iterable<Iterable<T>>

Available on Iterable<T>, provided by the PermutationsExtension extension

Returns an iterable that consists of iterables, where each iterable is a collection of all the permutations of the elements in this iterable.
prepend(T value) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts an element at the beginning of the iterable.
prepend2(T v1, T v2) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts two elements at the beginning of the iterable.
prepend3(T v1, T v2, T v3) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts three elements at the beginning of the iterable.
prepend4(T v1, T v2, T v3, T v4) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts four elements at the beginning of the iterable.
prepend5(T v1, T v2, T v3, T v4, T v5) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts five elements at the beginning of the iterable.
prepend6(T v1, T v2, T v3, T v4, T v5, T v6) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts six elements at the beginning of the iterable.
prepend7(T v1, T v2, T v3, T v4, T v5, T v6, T v7) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts seven elements at the beginning of the iterable.
prepend8(T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts eight elements at the beginning of the iterable.
prepend9(T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8, T v9) Iterable<T>

Available on Iterable<T>, provided by the PrependExtension extension

Inserts nine elements at the beginning of the iterable.
prependAll(Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the PrependAllExtension extension

Inserts all elements in an iterable at the beginning of this iterable.
preScan(T initialValue, T aggregator(T value, T element)) Iterable<T>

Available on Iterable<T>, provided by the PreScanExtension extension

Returns the pre-scan (exclusive prefix sum) of this iterable.
randomize([Random? random]) Iterable<T>

Available on Iterable<T>, provided by the RandomizeExtension extension

Returns a sequence of elements in random order from the original sequence. The optional parameter random specifies a random generator to be used for the random selection algorithm.
randomSubset(int size, [Random? random]) Iterable<T>

Available on Iterable<T>, provided by the RandomSubsetExtension extension

Returns an iterable of the specified size consisting of random elements from this iterable. The optional parameter random specifies a random generator to be used for the random selection algorithm.
reduce(T combine(T value, T element)) → T
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
repeat(int count) Iterable<T>

Available on Iterable<T>, provided by the RepeatExtension extension

Repeats this iterable a specified number of times.
reverse() Iterable<T>

Available on Iterable<T>, provided by the ReverseExtension extension

Reverses the order of the iterable.
scan(T aggregator(T previousElement, T element)) Iterable<T>

Available on Iterable<T>, provided by the ScanExtension extension

Returns the scan (inclusive prefix sum) of this iterable.
select<TResult>(TResult selector(T element, int index)) Iterable<TResult>

Available on Iterable<T>, provided by the SelectExtension extension

Applies a mapping function to the elements in the iterable, including the index where each element is found.
selectMany<TResult>(Iterable<TResult> selector(T element, int index)) Iterable<TResult>

Available on Iterable<T>, provided by the SelectManyExtension extension

Maps elements in an iterable to collections and then flattens those collections into a single iterable.
sequenceEquals(Iterable<T> other, {bool comparer(T outer, T inner)?}) bool

Available on Iterable<T>, provided by the SequenceEqualsExtension extension

Returns true if this iterable is equivalent to the given collection.
sequenceEqualsSelect<TOther, TKey>(Iterable<TOther> other, {required TKey outerSelector(T element)?, required TKey innerSelector(TOther element)?, bool comparer(TKey outer, TKey inner)?}) bool

Available on Iterable<T>, provided by the SequenceEqualsSelectExtension extension

Returns true if this iterable is equivalent to the given collection.
singleOrDefault({required T defaultValue}) → T

Available on Iterable<T>, provided by the SingleOrDefaultExtension extension

Returns the single element in the iterable, or a defaultValue if no such element exists.
singleWhere(bool test(T element), {T orElse()?}) → T
The single element that satisfies test.
inherited
singleWhereOrDefault(bool condition(T element), {required T defaultValue}) → T

Available on Iterable<T>, provided by the SingleWhereOrDefaultExtension extension

Returns the single element in the iterable matching a condition, or a defaultValue if no such element exists.
skip(int count) Iterable<T>
Creates an Iterable that provides all but the first count elements.
inherited
skipLast(int count) Iterable<T>

Available on Iterable<T>, provided by the SkipLastExtension extension

Skips the last count elements in an iterable.
skipWhile(bool test(T value)) Iterable<T>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
split(T separator, {bool comparer(T separator, T element)?}) Iterable<Iterable<T>>

Available on Iterable<T>, provided by the SplitExtension extension

Splits the is iterable into multiple iterables on elements that match the separator.
startsWith(Iterable<T> other, {bool comparer(T otherElement, T element)?}) bool

Available on Iterable<T>, provided by the StartsWithExtension extension

Returns true if this iterable starts with the same elements that are in other.
subsets() Iterable<Iterable<T>>

Available on Iterable<T>, provided by the SubsetsExtension extension

Returns an iterable of iterables which represents all of the subsets of this iterable. (Also known as the power set of the iterable.)
sum<TNum extends num>([TNum selector(T)?]) → TNum

Available on Iterable<T>, provided by the SumExtension extension

Calculates the sum of the elements in an iterable, optionally using selector to obtain the value to be summed.
swap(List<T> input, int a, int b) → void

Available on Iterable<T>, provided by the PermutationsExtension extension

take(int count) Iterable<T>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeEvery(int step) Iterable<T>

Available on Iterable<T>, provided by the TakeEveryExtension extension

Takes every N-th element in this iterable.
takeLast(int count) Iterable<T>

Available on Iterable<T>, provided by the TakeLastExtension extension

Takes the last count elements in an iterable.
takeWhile(bool test(T value)) Iterable<T>
Creates a lazy iterable of the leading elements satisfying test.
inherited
thenBy<TKey>(TKey keySelector(T element), {EqualityComparer<TKey>? keyComparer}) Iterable<T>

Available on Iterable<T>, provided by the ThenByExtension extension

Adds a secondary sorting pass to iteration in ascending (least-to-greatest) order.
thenByDescending<TKey>(TKey keySelector(T element), {EqualityComparer<TKey>? keyComparer}) Iterable<T>

Available on Iterable<T>, provided by the ThenByDescendingExtension extension

Adds a secondary sorting pass to iteration in ascending (least-to-greatest) order.
toHashMap<TKey, TValue>(MapEntry<TKey, TValue> entrySelector(T element), {bool modifiable = true}) Map<TKey, TValue>

Available on Iterable<T>, provided by the ToHashMapExtension extension

Converts the iterable to a HashMap.
toLinkedHashMap<TKey, TValue>(MapEntry<TKey, TValue> entrySelector(T element), {bool modifiable = true}) Map<TKey, TValue>

Available on Iterable<T>, provided by the ToLinkedHashMapExtension extension

Converts the iterable to a LinkedHashMap.
toList({bool growable = true}) List<T>
Creates a List containing the elements of this Iterable.
inherited
toMap<TKey, TValue>(MapEntry<TKey, TValue> entrySelector(T element), {bool modifiable = false}) Map<TKey, TValue>

Available on Iterable<T>, provided by the ToMapExtension extension

Converts the iterable to a Map.
toSet() Set<T>
Creates a Set containing the same elements as this iterable.
inherited
toSplayTreeMap<TKey, TValue>(MapEntry<TKey, TValue> entrySelector(T element), {int keyComparer(TKey k1, TKey k2)?, bool modifiable = true}) Map<TKey, TValue>

Available on Iterable<T>, provided by the ToSplayTreeMapExtension extension

Converts the iterable to a SplayTreeMap.
toStream({bool isBroadcast = false}) Stream<T>

Available on Iterable<T>, provided by the ToStreamExtension extension

Converts the iterable to a Stream.
toString() String
Returns a string representation of (some of) the elements of this.
inherited
tryAggregate(T aggregator(T aggregate, T element), {T? defaultValue}) → T?

Available on Iterable<T>, provided by the TryAggregateExtension extension

Aggregates the iterable into a single value.
tryAggregateRight(T aggregator(T aggregate, T element), {T? defaultValue}) → T?

Available on Iterable<T>, provided by the TryAggregateRightExtension extension

Aggregates the iterable into a single value in a right-associative manner.
tryInsert(int index, T value) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts an element into the iterable at the specified index.
tryInsert2(int index, T v1, T v2) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts two elements into the iterable at the specified index.
tryInsert3(int index, T v1, T v2, T v3) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts three elements into the iterable at the specified index.
tryInsert4(int index, T v1, T v2, T v3, T v4) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts four elements into the iterable at the specified index.
tryInsert5(int index, T v1, T v2, T v3, T v4, T v5) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts five elements into the iterable at the specified index.
tryInsert6(int index, T v1, T v2, T v3, T v4, T v5, T v6) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts six elements into the iterable at the specified index.
tryInsert7(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts seven elements into the iterable at the specified index.
tryInsert8(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts eight elements into the iterable at the specified index.
tryInsert9(int index, T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8, T v9) Iterable<T>

Available on Iterable<T>, provided by the TryInsertExtension extension

Inserts nine elements into the iterable at the specified index.
tryInsertAll(int index, Iterable<T> other) Iterable<T>

Available on Iterable<T>, provided by the TryInsertAllExtension extension

Inserts an element into the iterable at the specified index.
trySingleOrDefault({T? defaultValue}) → T?

Available on Iterable<T>, provided by the TrySingleOrDefaultExtension extension

Returns the single element in the iterable, or a defaultValue if no such element exists.
trySingleWhereOrDefault(bool condition(T element), {T? defaultValue}) → T?

Available on Iterable<T>, provided by the TrySingleWhereOrDefaultExtension extension

Returns the single element in the iterable matching a condition, or a defaultValue if no such element exists.
union(Iterable<T> other, [Object selector(T element)?]) Iterable<T>

Available on Iterable<T>, provided by the UnionExtension extension

Returns the set union between the iterable and the given collection.
where(bool test(T element)) Iterable<T>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited
zip<TOther, TResult>(Iterable<TOther> other, TResult selector(T element, TOther otherElement)) Iterable<TResult>

Available on Iterable<T>, provided by the ZipExtension extension

Combines the values of the iterable and another collection into an iterable of new values.

Operators

operator ==(Object other) bool
The equality operator.
inherited