CombinedIterableView<T> class
A view of several iterables combined sequentially into a single iterable.
All methods and accessors treat the CombinedIterableView as if it were a single concatenated iterable, but the underlying implementation is based on lazily accessing individual iterable instances. This means that if the underlying iterables change, the CombinedIterableView will reflect those changes.
- Inheritance
-
- Object
- IterableBase<
T> - CombinedIterableView
- Available extensions
- EnumByName
- EnumIterableScrewdriver
- FutureIterable
- IterableComparableExtension
- IterableDoubleExtension
- IterableExtension
- IterableExtensions
- IterableIntegerExtension
- IterableIterableExtension
- IterableNullableExtension
- IterableNumberExtension
- IterableScrewDriver
- NestedIterableScrewdriver
- NullableIterableExtensions
- NullableIterableScrewDriver
Constructors
-
CombinedIterableView(Iterable<
Iterable< _iterables)T> > -
Creates a combined view of
_iterables
.const
Properties
- average → double
-
Available on Iterable<
The arithmetic mean of the elements of a non-empty iterable.int> , provided by the IterableIntegerExtension extensionno setter - average → double
-
Available on Iterable<
The arithmetic mean of the elements of a non-empty iterable.num> , provided by the IterableNumberExtension extensionno setter - first → T
-
The first element.
no setterinherited
- firstOrNull → T?
-
Available on Iterable<
The first element, orT> , provided by the IterableExtension extensionnull
if the iterable is empty.no setter - firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnull
if the iterable is empty.no setter -
flattened
→ Iterable<
T> -
Available on Iterable<
The sequential elements of each iterable in this iterable.Iterable< , provided by the IterableIterableExtension extensionT> >no setter -
flattenedNotNull
→ Iterable<
E> -
Available on Iterable<
Flattens the nested iterable to a single iterable.Iterable< ?, provided by the NestedIterableScrewdriver extensionE?> ?>no setter -
flattenedToList
→ List<
T> -
Available on Iterable<
The sequential elements of each iterable in this iterable.Iterable< , provided by the IterableIterableExtension extensionT> >no setter -
flattenedToSet
→ Set<
T> -
Available on Iterable<
The unique sequential elements of each iterable in this iterable.Iterable< , provided by the IterableIterableExtension extensionT> >no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasOnlyOneElement → bool
-
Available on Iterable<
Returns true if the collection only has 1 element.E> , provided by the IterableScrewDriver extensionno setter -
indexed
→ Iterable<
(int, T)> -
Available on Iterable<
Pairs of elements of the indices and elements of this iterable.T> , provided by the IterableExtensions extensionno setter - isBlank → bool
-
Available on Iterable<
Alias for isNullOrEmpty. Returns true ifE> ?, provided by the NullableIterableScrewDriver extensionthis
is either null or empty collection.no setter - isEmpty → bool
-
Whether this collection has no elements.
no setteroverride
- isNotBlank → bool
-
Available on Iterable<
Alias for isNotNullOrEmpty. Returns true ifE> ?, provided by the NullableIterableScrewDriver extensionthis
is neither null nor empty collection.no setter - isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
- isNotNullOrEmpty → bool
-
Available on Iterable<
Returns true ifE> ?, provided by the NullableIterableScrewDriver extensionthis
is neither null nor empty collection.no setter - isNullOrEmpty → bool
-
Available on Iterable<
Returns true ifE> ?, provided by the NullableIterableScrewDriver extensionthis
is either null or empty collection.no setter -
iterator
→ Iterator<
T> -
A new
Iterator
that allows iterating the elements of thisIterable
.no setteroverride - last → T
-
The last element.
no setterinherited
- lastIndex → int
-
Available on Iterable<
Returns the index of the last element in the collection.E> , provided by the IterableScrewDriver extensionno setter - lastOrNull → T?
-
Available on Iterable<
The last element of this iterable, orT> , provided by the IterableExtensions extensionnull
if the iterable is empty.no setter - lastOrNull → T?
-
Available on Iterable<
The last element, orT> , provided by the IterableExtension extensionnull
if the iterable is empty.no setter - length → int
-
The number of elements in this Iterable.
no setteroverride
- max → T
-
Available on Iterable<
A maximal element of the iterable.T> , provided by the IterableComparableExtension extensionno setter - max → double
-
Available on Iterable<
A maximal element of the iterable.double> , provided by the IterableDoubleExtension extensionno setter - max → int
-
Available on Iterable<
A maximal element of the iterable.int> , provided by the IterableIntegerExtension extensionno setter - max → num
-
Available on Iterable<
A maximal element of the iterable.num> , provided by the IterableNumberExtension extensionno setter - maxOrNull → T?
-
Available on Iterable<
A maximal element of the iterable, orT> , provided by the IterableComparableExtension extensionnull
if the iterable is empty.no setter - maxOrNull → int?
-
Available on Iterable<
A maximal element of the iterable, orint> , provided by the IterableIntegerExtension extensionnull
if the iterable is empty.no setter - maxOrNull → double?
-
Available on Iterable<
A maximal element of the iterable, ordouble> , provided by the IterableDoubleExtension extensionnull
if the iterable is empty.no setter - maxOrNull → num?
-
Available on Iterable<
A maximal element of the iterable, ornum> , provided by the IterableNumberExtension extensionnull
if the iterable is empty.no setter - min → T
-
Available on Iterable<
A minimal element of the iterable.T> , provided by the IterableComparableExtension extensionno setter - min → int
-
Available on Iterable<
A minimal element of the iterable.int> , provided by the IterableIntegerExtension extensionno setter - min → double
-
Available on Iterable<
A minimal element of the iterable.double> , provided by the IterableDoubleExtension extensionno setter - min → num
-
Available on Iterable<
A minimal element of the iterable.num> , provided by the IterableNumberExtension extensionno setter - minOrNull → int?
-
Available on Iterable<
A minimal element of the iterable, orint> , provided by the IterableIntegerExtension extensionnull
it the iterable is empty.no setter - minOrNull → double?
-
Available on Iterable<
A minimal element of the iterable, ordouble> , provided by the IterableDoubleExtension extensionnull
it the iterable is empty.no setter - minOrNull → num?
-
Available on Iterable<
A minimal element of the iterable, ornum> , provided by the IterableNumberExtension extensionnull
it the iterable is empty.no setter - minOrNull → T?
-
Available on Iterable<
A minimal element of the iterable, orT> , provided by the IterableComparableExtension extensionnull
it the iterable is empty.no setter -
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnull
elements of this iterable.no setter -
records
→ Iterable<
(int, E)> -
Available on Iterable<
Returns an iterable containing the items with their respective indices in form of records.E> , provided by the IterableScrewDriver extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondOrNull → E?
-
Available on Iterable<
Returns the second element in the iterable or returns null if iterable is empty or has only 1 element.E> , provided by the IterableScrewDriver extensionno setter - single → T
-
Checks that this iterable has only one element, and returns that element.
no setterinherited
- singleOrNull → T?
-
Available on Iterable<
The single element of the iterable, orT> , provided by the IterableExtension extensionnull
.no setter - singleOrNull → T?
-
Available on Iterable<
The single element of this iterator, orT> , provided by the IterableExtensions extensionnull
.no setter - sum → num
-
Available on Iterable<
The sum of the elements.num> , provided by the IterableNumberExtension extensionno setter - sum → int
-
Available on Iterable<
The sum of the elements.int> , provided by the IterableIntegerExtension extensionno setter - sum → double
-
Available on Iterable<
The sum of the elements.double> , provided by the IterableDoubleExtension extensionno setter - thirdOrNull → E?
-
Available on Iterable<
Returns the third element in the iterable or returns null if iterable is empty or has less than 3 elements.E> , provided by the IterableScrewDriver extensionno setter -
wait
→ Future<
List< T> > -
Available on Iterable<
Waits for futures in parallel.Future< , provided by the FutureIterable extensionT> >no setter
Methods
-
all(
bool test(E element)) → bool -
Available on Iterable<
alias for Iterable.everyE> , provided by the IterableScrewDriver extension -
any(
bool test(T element)) → bool -
Checks whether any element of this iterable satisfies
test
.inherited -
asNameMap(
) → Map< String, T> -
Available on Iterable<
Creates a map from the names of enum values to the values.T> , provided by the EnumByName extension -
associate<
K, V> ((K, V) transform(E element)) → Map< K, V> -
Available on Iterable<
Returns a Map containing key-value pairs provided byE> , provided by the IterableScrewDriver extensiontransform
function applied to elements of the given List. -
associateBy<
K> (K keySelector(E element)) → Map< K, E> -
Available on Iterable<
Returns a Map containing the elements from the given List indexed by the key returned fromE> , provided by the IterableScrewDriver extensionkeySelector
function applied to each element. -
associateByTo<
K> (Map< K, E> destination, K keySelector(E element)) → Map<K, E> -
Available on Iterable<
Populates and returns theE> , provided by the IterableScrewDriver extensiondestination
mutable map with key-value pairs, where key is provided by thekeySelector
function applied to each element of the given iterable and value is the element itself. -
associateTo<
K, V> (Map< K, V> destination, (K, V) transform(E element)) → Map<K, V> -
Available on Iterable<
Populates and returns theE> , provided by the IterableScrewDriver extensiondestination
map with key-value pairs provided bytransform
function applied to each element of the given iterable. -
associateWith<
V> (V valueSelector(E element)) → Map< E, V> -
Available on Iterable<
Returns a Map where keys are elements from the given iterable and values are produced by theE> , provided by the IterableScrewDriver extensionvalueSelector
function applied to each element. -
associateWithTo<
V> (Map< E, V> destination, V valueSelector(E element)) → Map<E, V> -
Available on Iterable<
Populates and returns theE> , provided by the IterableScrewDriver extensiondestination
map with key-value pairs for each element of the given iterable, where key is the element itself and value is provided by thevalueSelector
function applied to that key. -
averageBy<
R extends num> (R selector(E element)) → double -
Available on Iterable<
Returns the average of all values produced byE> , provided by the IterableScrewDriver extensionselector
function applied to each element in the collection. -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname
. -
byNameOrNull(
String? name) → T? -
Available on Iterable<
Same as EnumByName.byName but returnsT> , provided by the EnumIterableScrewdriver extensionnull
if no value is found. -
cast<
R> () → Iterable< R> -
A view of this iterable as an iterable of
R
instances.inherited -
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element
.override -
containsAll(
Iterable< E> other) → bool -
Available on Iterable<
Returns true if the collection contains all the elements present inE> , provided by the IterableScrewDriver extensionother
collection. -
containsNone(
Iterable< E> other) → bool -
Available on Iterable<
Returns true if the collection doesn't contain any of the elements present inE> , provided by the IterableScrewDriver extensionother
collection. -
count(
E element) → int -
Available on Iterable<
Returns the number of elements matching the givenE> , provided by the IterableScrewDriver extensionpredicate
. -
countBy(
bool predicate(E element)) → int -
Available on Iterable<
Returns the number of elements matching the givenE> , provided by the IterableScrewDriver extensionpredicate
. -
distinct(
) → Iterable< E> -
Available on Iterable<
Returns an iterable containing only distinct elements from the given iterable.E> , provided by the IterableScrewDriver extension -
distinctBy<
K> (K selector(E element)) → Iterable< E> -
Available on Iterable<
Returns an iterable containing only elements from the given iterable having distinct keys returned by the givenE> , provided by the IterableScrewDriver extensionselector
function. -
distinctByTo<
K> (List< E> destination, K selector(E element)) → Iterable<E> -
Available on Iterable<
Populates and returns theE> , provided by the IterableScrewDriver extensiondestination
list with containing only elements from the given iterable having distinct keys returned by the givenselector
function. -
drop(
int count) → Iterable< E> -
Available on Iterable<
alias for Iterable.skipE> , provided by the IterableScrewDriver extension -
dropLast(
int count) → Iterable< E> -
Available on Iterable<
alias for Iterable.skipE> , provided by the IterableScrewDriver extension -
dropWhile(
bool test(E element)) → Iterable< E> -
Available on Iterable<
alias for Iterable.skipWhileE> , provided by the IterableScrewDriver extension -
elementAt(
int index) → T -
Returns the
index
th element.inherited -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindex
of this iterable, ornull
. -
elementAtOrNull(
int index) → T? -
Available on Iterable<
TheT> , provided by the IterableExtension extensionindex
th element, ornull
if there is no such element. -
every(
bool test(T element)) → bool -
Checks whether every element of this iterable satisfies
test
.inherited -
except(
E other, [E? other1, E? other2, E? other3, E? other4, E? other5]) → Iterable< E> -
Available on Iterable<
Alias for subtract.E> , provided by the IterableScrewDriver extension -
exceptAll(
Iterable< E> other) → Iterable<E> -
Available on Iterable<
Alias for subtract.E> , provided by the IterableScrewDriver extension -
expand<
T> (Iterable< T> toElements(T element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
expandIndexed<
R> (Iterable< R> expand(int index, T element)) → Iterable<R> -
Available on Iterable<
Expands each element and index to a number of elements in a new iterable.T> , provided by the IterableExtension extension -
filter(
bool predicate(E element)) → Iterable< E> -
Available on Iterable<
alias for Iterable.whereE> , provided by the IterableScrewDriver extension -
filterIndexed(
bool test(int index, E element)) → Iterable< E> -
Available on Iterable<
alias for whereIndexed which returns a new lazy Iterable.E> , provided by the IterableScrewDriver extension -
filterTo(
List< E> destination, bool predicate(E element)) → Iterable<E> -
Available on Iterable<
Appends all elements matching the givenE> , provided by the IterableScrewDriver extensionpredicate
to the givendestination
. -
findAllBy<
S> (S query, S selector(E item)) → Iterable< E> -
Available on Iterable<
Finds all elements where the result ofE> , provided by the IterableScrewDriver extensionselector
matches thequery
. Returns empty collection if no element is found. -
findBy<
S> (S query, S selector(E item)) → E -
Available on Iterable<
Finds an element where the result ofE> , provided by the IterableScrewDriver extensionselector
matches thequery
. Throws StateError if no element is found. -
findByOrNull<
C> (C query, C selector(E item)) → E? -
Available on Iterable<
Finds an element where the result ofE> , provided by the IterableScrewDriver extensionselector
matches thequery
. Returns null if no element is found. -
firstWhere(
bool test(T element), {T orElse()?}) → T -
The first element that satisfies the given predicate
test
.inherited -
firstWhereIndexedOrNull(
bool test(int index, T element)) → T? -
Available on Iterable<
The first element whose value and index satisfiesT> , provided by the IterableExtension extensiontest
. -
firstWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
The first element satisfyingT> , provided by the IterableExtension extensiontest
, ornull
if there are none. -
flatMap<
R> (Iterable< R> transform(E element)) → Iterable<R> -
Available on Iterable<
alias for Iterable.mapE> , provided by the IterableScrewDriver extension -
flatMapNotNull<
R> (Iterable< R?> ? transform(E element)) → Iterable<R> -
Available on Iterable<
alias for Iterable.mapE> , provided by the IterableScrewDriver extension -
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
-
foldIndexed<
R> (R initialValue, R combine(int index, R previous, T element)) → R -
Available on Iterable<
Combine the elements with a value and the current index.T> , provided by the IterableExtension extension -
foldRight<
R> (R initialValue, R operation(R previousValue, E element)) → R -
Available on Iterable<
Accumulates value starting withE> , provided by the IterableScrewDriver extensioninitialValue
value and applyingoperation
from right to left to each element and current accumulator value. -
foldRightIndexed<
R> (R initialValue, R operation(int index, R previousValue, E element)) → R -
Available on Iterable<
Accumulates value starting withE> , provided by the IterableScrewDriver extensioninitialValue
value and applyingoperation
from right to left to each element with its index in the original list and current accumulator value. -
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 -
forEachIndexed(
void action(int index, T element)) → void -
Available on Iterable<
Takes an action for each element.T> , provided by the IterableExtension extension -
forEachIndexedWhile(
bool action(int index, T element)) → void -
Available on Iterable<
Takes an action for each element and index as long as desired.T> , provided by the IterableExtension extension -
forEachWhile(
bool action(T element)) → void -
Available on Iterable<
Takes an action for each element as long as desired.T> , provided by the IterableExtension extension -
groupBy<
K> (K keySelector(E element)) → Map< K, List< E> > -
Available on Iterable<
Groups elements of the original iterable by the key returned by the givenE> , provided by the IterableScrewDriver extensionkeySelector
function applied to each element and returns a map where each group key is associated with a list of corresponding elements. -
groupByTo<
K> (Map< K, List< destination, K keySelector(E element)) → Map<E> >K, List< E> > -
Available on Iterable<
Groups elements of the original iterable by the key returned by the givenE> , provided by the IterableScrewDriver extensionkeySelector
function applied to each element and puts to thedestination
map each group key associated with a list of corresponding elements. -
groupFoldBy<
K, G> (K keyOf(T element), G combine(G? previous, T element)) → Map< K, G> -
Available on Iterable<
Groups elements byT> , provided by the IterableExtension extensionkeyOf
then folds the elements in each group. -
groupListsBy<
K> (K keyOf(T element)) → Map< K, List< T> > -
Available on Iterable<
Groups elements into lists byT> , provided by the IterableExtension extensionkeyOf
. -
groupSetsBy<
K> (K keyOf(T element)) → Map< K, Set< T> > -
Available on Iterable<
Groups elements into sets byT> , provided by the IterableExtension extensionkeyOf
. -
intersect(
Iterable< E> other) → Iterable<E> -
Available on Iterable<
Returns a set containing all elements that are contained by bothE> , provided by the IterableScrewDriver extensionthis
iterable and theother
iterable. -
isSorted(
[Comparator< T> ? compare]) → bool -
Available on Iterable<
Whether the elements are sorted by theT> , provided by the IterableComparableExtension extensioncompare
ordering. -
isSorted(
Comparator< T> compare) → bool -
Available on Iterable<
Whether the elements are sorted by theT> , provided by the IterableExtension extensioncompare
ordering. -
isSortedBy<
K extends Comparable< (K> >K keyOf(T element)) → bool -
Available on Iterable<
Whether the elements are sorted by theirT> , provided by the IterableExtension extensionkeyOf
property. -
isSortedByCompare<
K> (K keyOf(T element), Comparator< K> compare) → bool -
Available on Iterable<
Whether the elements areT> , provided by the IterableExtension extensioncompare
-sorted by theirkeyOf
property. -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
lastBy<
K> (K key(T)) → Map< K, T> -
Available on Iterable<
Associates the elements inT> , provided by the IterableExtension extensionthis
by the value returned bykey
. -
lastWhere(
bool test(T element), {T orElse()?}) → T -
The last element that satisfies the given predicate
test
.inherited -
lastWhereIndexedOrNull(
bool test(int index, T element)) → T? -
Available on Iterable<
The last element whose index and value satisfiesT> , provided by the IterableExtension extensiontest
. -
lastWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
The last element satisfyingT> , provided by the IterableExtension extensiontest
, ornull
if there are none. -
map<
T> (T toElement(T e)) → Iterable< T> -
The current elements of this iterable modified by
toElement
.inherited -
mapIndexed<
R> (R convert(int index, T element)) → Iterable< R> -
Available on Iterable<
Maps each element and its index to a new value.T> , provided by the IterableExtension extension -
mapNotNull<
R> (R? transform(E element)) → Iterable< R> -
Available on Iterable<
Similar to Iterable.map but also filters out null values.E> , provided by the IterableScrewDriver extension -
mapNotNullIndexed<
R> (R? transform(int index, E element)) → Iterable< R> -
Available on Iterable<
Similar toE> , provided by the IterableScrewDriver extensionList.mapIndexed
, where index is also provided to thetransform
function, but also filters out null values. -
maxBy<
R extends Comparable> (R selector(E element)) → E -
Available on Iterable<
Returns the first element yielding the largest value of the given function. Throws StateError if there are no elements in the collection.E> , provided by the IterableScrewDriver extension -
maxByLast<
R extends Comparable> (R selector(E element)) → E -
Available on Iterable<
Returns the last element yielding the largest value of the given function. Throws StateError if there are no elements in the collection.E> , provided by the IterableScrewDriver extension -
maxByLastOrNull<
R extends Comparable> (R selector(E element)) → E? -
Available on Iterable<
Returns the last element yielding the largest value of the given function orE> , provided by the IterableScrewDriver extensionnull
if there are no elements. -
maxByOrNull<
R extends Comparable> (R selector(E element)) → E? -
Available on Iterable<
Returns the first element yielding the largest value of the given function orE> , provided by the IterableScrewDriver extensionnull
if there are no elements. -
minBy<
R extends Comparable> (R selector(E element)) → E -
Available on Iterable<
Returns the first element yielding the smallest value of the given function. Throws StateError if there are no elements in the collection.E> , provided by the IterableScrewDriver extension -
minByLast<
R extends Comparable> (R selector(E element)) → E -
Available on Iterable<
Returns the last element yielding the smallest value of the given function. Throws StateError if there are no elements in the collection.E> , provided by the IterableScrewDriver extension -
minByLastOrNull<
R extends Comparable> (R selector(E element)) → E? -
Available on Iterable<
Returns the last element yielding the smallest value of the given function orE> , provided by the IterableScrewDriver extensionnull
if there are no elements. -
minByOrNull<
R extends Comparable> (R selector(E element)) → E? -
Available on Iterable<
Returns the first element yielding the smallest value of the given function orE> , provided by the IterableScrewDriver extensionnull
if there are no elements. -
none(
bool test(T)) → bool -
Available on Iterable<
Whether no element satisfiesT> , provided by the IterableExtension extensiontest
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEach(
void action(E element)) → Iterable< E> -
Available on Iterable<
Performs the givenE> , provided by the IterableScrewDriver extensionaction
on each element and returns the iterable itself afterwards. -
random(
[Random? random]) → E -
Available on Iterable<
Returns a random element fromE> , provided by the IterableScrewDriver extensionthis
. Throws StateError if there are no elements in the collection. -
randomOrNull(
[Random? random]) → E? -
Available on Iterable<
Returns a random element fromE> , provided by the IterableScrewDriver extensionthis
. Returns null if no elements are present. -
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
-
reduceIndexed(
T combine(int index, T previous, T element)) → T -
Available on Iterable<
Combine the elements with each other and the current index.T> , provided by the IterableExtension extension -
sample(
int count, [Random? random]) → List< T> -
Available on Iterable<
SelectsT> , provided by the IterableExtension extensioncount
elements at random from this iterable. -
shuffled(
[Random? random]) → List< T> -
Available on Iterable<
Creates a shuffled list of the elements of the iterable.T> , provided by the IterableExtension extension -
singleWhere(
bool test(T element), {T orElse()?}) → T -
The single element that satisfies
test
.inherited -
singleWhereIndexedOrNull(
bool test(int index, T element)) → T? -
Available on Iterable<
The single element satisfyingT> , provided by the IterableExtension extensiontest
. -
singleWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
The single element satisfyingT> , provided by the IterableExtension extensiontest
. -
skip(
int count) → Iterable< T> -
Creates an Iterable that provides all but the first
count
elements.inherited -
skipWhile(
bool test(T value)) → Iterable< T> -
Creates an
Iterable
that skips leading elements whiletest
is satisfied.inherited -
slices(
int length) → Iterable< List< T> > -
Available on Iterable<
Contiguous slices ofT> , provided by the IterableExtension extensionthis
with the givenlength
. -
sorted(
Comparator< T> compare) → List<T> -
Available on Iterable<
Creates a sorted list of the elements of the iterable.T> , provided by the IterableExtension extension -
sorted(
[Comparator< T> ? compare]) → List<T> -
Available on Iterable<
Creates a sorted list of the elements of the iterable.T> , provided by the IterableComparableExtension extension -
sortedBy<
K extends Comparable< (K> >K keyOf(T element)) → List< T> -
Available on Iterable<
Creates a sorted list of the elements of the iterable.T> , provided by the IterableExtension extension -
sortedByCompare<
K> (K keyOf(T element), Comparator< K> compare) → List<T> -
Available on Iterable<
Creates a sorted list of the elements of the iterable.T> , provided by the IterableExtension extension -
splitAfter(
bool test(T element)) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into chunks after some elements.T> , provided by the IterableExtension extension -
splitAfterIndexed(
bool test(int index, T element)) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into chunks after some elements and indices.T> , provided by the IterableExtension extension -
splitBefore(
bool test(T element)) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into chunks before some elements.T> , provided by the IterableExtension extension -
splitBeforeIndexed(
bool test(int index, T element)) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into chunks before some elements and indices.T> , provided by the IterableExtension extension -
splitBetween(
bool test(T first, T second)) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into chunks between some elements.T> , provided by the IterableExtension extension -
splitBetweenIndexed(
bool test(int index, T first, T second)) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into chunks between some elements and indices.T> , provided by the IterableExtension extension -
subtract(
Iterable< E> other) → Iterable<E> -
Available on Iterable<
Returns a set containing all elements that are contained byE> , provided by the IterableScrewDriver extensionthis
iterable and not contained by theother
iterable. -
sumBy<
R extends num> (R selector(E element)) → R -
Available on Iterable<
Returns the sum of all values produced byE> , provided by the IterableScrewDriver extensionselector
function applied to each element in the collection. -
take(
int count) → Iterable< T> -
Creates a lazy iterable of the
count
first elements of this iterable.inherited -
takeLast(
int count) → Iterable< E> -
Available on Iterable<
alias for Iterable.skipE> , provided by the IterableScrewDriver extension -
takeWhile(
bool test(T value)) → Iterable< T> -
Creates a lazy iterable of the leading elements satisfying
test
.inherited -
toList(
{bool growable = true}) → List< T> -
Creates a List containing the elements of this Iterable.
inherited
-
toMap<
K, V> ((K, V) transform(E element)) → Map< K, V> -
Available on Iterable<
Alias for associate. Returns a Map containing key-value pairs provided byE> , provided by the IterableScrewDriver extensiontransform
function applied to elements of the given List. -
toSet(
) → Set< T> -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String -
Returns a string representation of (some of) the elements of
this
.inherited -
union(
Iterable< E> other) → Iterable<E> -
Available on Iterable<
Returns an iterable containing all distinct elements from both iterables.E> , provided by the IterableScrewDriver extension -
where(
bool test(T element)) → Iterable< T> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test
.inherited -
whereIndexed(
bool test(int index, T element)) → Iterable< T> -
Available on Iterable<
The elements whose value and index satisfiesT> , provided by the IterableExtension extensiontest
. -
whereNot(
bool test(T element)) → Iterable< T> -
Available on Iterable<
The elements that do not satisfyT> , provided by the IterableExtension extensiontest
. -
whereNotIndexed(
bool test(int index, T element)) → Iterable< T> -
Available on Iterable<
The elements whose value and index do not satisfyT> , provided by the IterableExtension extensiontest
. -
whereNotNull(
) → Iterable< T> -
Available on Iterable<
The non-T?> , provided by the IterableNullableExtension extensionnull
elements of thisIterable
. -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited