SeparatedIterable<T> class
- Inheritance
- Available extensions
Constructors
-
SeparatedIterable(Iterable<
T> _iterable, T _separator)
Properties
-
ascending
→ List<
double> -
Available on Iterable<
double> , provided by the TIterableDouble extensionno setter -
ascending
→ List<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter -
descending
→ List<
double> -
Available on Iterable<
double> , provided by the TIterableDouble extensionno setter -
descending
→ List<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter -
evens
→ Iterable<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter - first → T
-
The first element.
no setterinherited
- firstOr → T?
-
Available on Iterable<
T> , provided by the TIterable extensionno 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 - hashCode → int
-
The hash code for this object.
no setterinherited
-
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 - 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 thisIterable
.no setteroverride - last → T
-
The last element.
no setterinherited
- lastIndex → int
-
Available on Iterable<
Returns the last index of the iterable.T> , provided by the TIterable 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 - length → int
-
The number of elements in this Iterable.
no setterinherited
-
list
→ List<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter - middleIndex → int
-
Available on Iterable<
Returns the middle index of the iterable.T> , provided by the TIterable extensionno setter - mostCommon → T?
-
Available on Iterable<
T> , provided by the TIterable extensionno setter -
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnull
elements of this iterable.no setter -
notNull
→ Iterable<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter -
odds
→ Iterable<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter -
primes
→ Iterable<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
set
→ Set<
T> -
Available on Iterable<
T> , provided by the TIterable 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 this iterator, orT> , provided by the IterableExtensions extensionnull
.no setter -
unique
→ Iterable<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter -
wait
→ Future<
List< T> > -
Available on Iterable<
Waits for futures in parallel.Future< , provided by the FutureIterable extensionT> >no setter
Methods
-
add(
T element) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
addAll(
Iterable< T> elements) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
addAllFirst(
Iterable< T> elements) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
addFirst(
T element) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
any(
bool test(T element)) → bool -
Checks whether any element of this iterable satisfies
test
.inherited -
asKeys<
R> (R f(T)) → Map< T, R> -
Available on Iterable<
Returns a new Map where the values are used as keys in a map.T> , provided by the TIterable extension -
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 -
asValues<
R> (R f(T)) → Map< R, T> -
Available on Iterable<
Returns a new Map where the values are used as values in a map.T> , provided by the TIterable extension -
average(
) → double -
Available on Iterable<
int> , provided by the TIterableInt extension -
average(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
averageInt(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname
. -
cast<
R> () → Iterable< R> -
A view of this iterable as an iterable of
R
instances.inherited -
chunked(
int chunkSize) → Iterable< List< T> > -
Available on Iterable<
T> , provided by the TIterable extension -
column(
{Key? key, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline textBaseline = TextBaseline.alphabetic, TextDirection textDirection = TextDirection.ltr}) → Widget -
Available on Iterable<
Widget> , provided by the XIterableWidget extension -
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element
.inherited -
deduplicated(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with deduplicated elements.T> , provided by the TIterable extension -
deduplicatedList(
) → List< T> -
Available on Iterable<
Returns a new List with deduplicated elements.T> , provided by the TIterable extension -
diff(
Iterable< T> other) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable 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
. -
every(
bool test(T element)) → bool -
Checks whether every element of this iterable satisfies
test
.inherited -
expand<
T> (Iterable< T> toElements(T element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
firstWhere(
bool test(T element), {T orElse()?}) → T -
The first element that satisfies the given predicate
test
.inherited -
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<
M> (M grouper(T)) → Map< M, List< T> > -
Available on Iterable<
T> , provided by the TIterable extension -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
joinSeparator(
T separator) → Iterable< T> -
Available on Iterable<
T> , provided by the IterableExtension extension -
lastWhere(
bool test(T element), {T orElse()?}) → T -
The last element that satisfies the given predicate
test
.inherited -
map<
T> (T toElement(T e)) → Iterable< T> -
The current elements of this iterable modified by
toElement
.inherited -
mapIndexed<
V> (V f(T value, int index)) → Iterable< V> -
Available on Iterable<
T> , provided by the TIterable extension -
mapList<
R> (R f(T)) → List< R> -
Available on Iterable<
Returns a new List with mapped elements.T> , provided by the TIterable extension -
max(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
max(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
median(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
median(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
middleValue(
) → T? -
Available on Iterable<
Returns the middle element of the iterable.T> , provided by the TIterable extension -
min(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
min(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
mode(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
mode(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
occurrences(
) → Map< T, int> -
Available on Iterable<
Returns a new Map with the number of occurrences of each element.T> , provided by the TIterable extension -
product(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
product(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
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
-
reduceOr(
T or, T combine(T, T)) → T -
Available on Iterable<
T> , provided by the TIterable extension -
reversed(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with reversed elements.T> , provided by the TIterable extension -
reversedList(
) → List< T> -
Available on Iterable<
Returns a new List with reversed elements.T> , provided by the TIterable extension -
row(
{Key? key, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline textBaseline = TextBaseline.alphabetic, TextDirection textDirection = TextDirection.ltr}) → Widget -
Available on Iterable<
Widget> , provided by the XIterableWidget extension -
select(
bool test(T)) → T? -
Available on Iterable<
T> , provided by the TIterable extension -
selectLast(
bool test(T)) → T? -
Available on Iterable<
T> , provided by the TIterable extension -
shuffled(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with shuffled elements.T> , provided by the TIterable extension -
shuffledList(
) → List< T> -
Available on Iterable<
Returns a new List with shuffled elements.T> , provided by the TIterable extension -
singleWhere(
bool test(T element), {T orElse()?}) → T -
The single element that satisfies
test
.inherited -
skip(
int count) → Iterable< T> -
Creates an Iterable that provides all but the first
count
elements.inherited -
skip(
int n) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
skipWhile(
bool test(T value)) → Iterable< T> -
Creates an
Iterable
that skips leading elements whiletest
is satisfied.inherited -
softMap<
R> (R? f(T)) → Iterable< R> -
Available on Iterable<
Returns a new Iterable with mapped elements that are not null.T> , provided by the TIterable extension -
softMapList<
R> (R? f(T)) → List< R> -
Available on Iterable<
Returns a new List with mapped elements that are not null.T> , provided by the TIterable extension -
sorted(
[int compare(T, T)?]) → List< T> -
Available on Iterable<
Returns a new List with sorted elements.T> , provided by the TIterable extension -
stack(
{Key? key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection textDirection = TextDirection.ltr, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge}) → Widget -
Available on Iterable<
Widget> , provided by the XIterableWidget extension -
sum(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
sum(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
take(
int count) → Iterable< T> -
Creates a lazy iterable of the
count
first elements of this iterable.inherited -
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
-
toRect(
) → Rect -
Available on Iterable<
Offset> , provided by the XIterableOffset extension -
toRect(
) → Rect -
Available on Iterable<
Rect> , provided by the XIterableRect extension -
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 -
wait(
) → Future< List< T> > -
Available on Iterable<
Future< , provided by the TIterableFuture extensionT> > -
weave(
Iterable< T> other) → Iterable<T> -
Available on Iterable<
Weaves two iterables together into a new Iterable alternating elements.T> , provided by the TIterable extension -
where(
bool test(T element)) → Iterable< T> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test
.inherited -
whereIndex(
bool test(T value, int index)) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T
.inherited -
withPylons(
PylonBuilder builder) → List< Widget> -
Available on Iterable<
T> , provided by the XPylonIterable extension
Operators
-
operator %(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator %(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator &(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator *(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator *(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator +(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator +(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator -(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator -(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator /(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator <<(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >>(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ^(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator unary-(
) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator unary-(
) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator |(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ~(
) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ~/(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension