ObjIterableNullExt<E> extension
Properties
- first → E?
-
Available on Obj<
Returns the first element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - isEmpty → bool?
-
Available on Obj<
Whether this collection has no elements.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - isNotEmpty → bool?
-
Available on Obj<
Whether this collection has at least one element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter -
iterator
→ Iterator<
E> ? -
Available on Obj<
Returns a newIterable< , provided by the ObjIterableNullExt extensionE> ?>Iteratorthat allows iterating the elements of thisIterable.no setter - last → E?
-
Available on Obj<
Returns the last element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - length → int?
-
Available on Obj<
Returns the number of elements inIterable< , provided by the ObjIterableNullExt extensionE> ?>this.no setter - single → E?
-
Available on Obj<
Checks that this iterable has only one element, and returns that element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter
Methods
-
any(
bool test(E element)) → bool? -
Available on Obj<
Checks whether any element of this iterable satisfiesIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
cast<
R> () → Iterable< R> ? -
Available on Obj<
Provides a view of this iterable as an iterable ofIterable< , provided by the ObjIterableNullExt extensionE> ?>Rinstances. -
contains(
Object? element) → bool? -
Available on Obj<
Whether the collection contains an element equal toIterable< , provided by the ObjIterableNullExt extensionE> ?>element. -
elementAt(
int index) → E? -
Available on Obj<
Returns theIterable< , provided by the ObjIterableNullExt extensionE> ?>indexth element. -
every(
bool test(E element)) → bool? -
Available on Obj<
Checks whether every element of this iterable satisfiesIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
expand<
T> (Iterable< T> toElements(E element)) → Iterable<T> ? -
Available on Obj<
Expands each element of this Iterable into zero or more elements.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
firstWhere(
bool test(E element), {E orElse()?}) → E? -
Available on Obj<
Returns the first element that satisfies the given predicateIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
fold<
T> (T initialValue, T combine(T previousValue, E element)) → T? -
Available on Obj<
Reduces a collection to a single value by iteratively combining each element of the collection with an existing valueIterable< , provided by the ObjIterableNullExt extensionE> ?> -
followedBy(
Iterable< E> other) → Iterable<E> ? -
Available on Obj<
Returns the lazy concatenation of this iterable andIterable< , provided by the ObjIterableNullExt extensionE> ?>other. -
forEach(
void action(E element)) → void -
Available on Obj<
InvokesIterable< , provided by the ObjIterableNullExt extensionE> ?>actionon each element of this iterable in iteration order. -
join(
[String separator = ""]) → String? -
Available on Obj<
Converts each element to a String and concatenates the strings.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
lastWhere(
bool test(E element), {E orElse()?}) → E? -
Available on Obj<
Returns the last element that satisfies the given predicateIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
map<
T> (T toElement(E e)) → Iterable< T> ? -
Available on Obj<
The current elements of this iterable modified byIterable< , provided by the ObjIterableNullExt extensionE> ?>toElement. -
reduce(
E combine(E value, E element)) → E? -
Available on Obj<
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
singleWhere(
bool test(E element), {E orElse()?}) → E? -
Available on Obj<
Returns the single element that satisfiesIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
skip(
int count) → Iterable< E> ? -
Available on Obj<
Returns an Iterable that provides all but the firstIterable< , provided by the ObjIterableNullExt extensionE> ?>countelements. -
skipWhile(
bool test(E value)) → Iterable< E> ? -
Available on Obj<
Returns anIterable< , provided by the ObjIterableNullExt extensionE> ?>Iterablethat skips leading elements whiletestis satisfied. -
take(
int count) → Iterable< E> ? -
Available on Obj<
Returns a lazy iterable of theIterable< , provided by the ObjIterableNullExt extensionE> ?>countfirst elements of this iterable. -
takeWhile(
bool test(E value)) → Iterable< E> ? -
Available on Obj<
Returns a lazy iterable of the leading elements satisfyingIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
toList(
{bool growable = true}) → List< E> ? -
Available on Obj<
Creates a List containing the elements of this Iterable.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
toSet(
) → Set< E> ? -
Available on Obj<
Creates a Set containing the same elements as this iterable.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
where(
bool test(E element)) → Iterable< E> ? -
Available on Obj<
Returns a new lazy Iterable with all elements that satisfy the predicateIterable< , provided by the ObjIterableNullExt extensionE> ?>test. -
whereType<
T> () → Iterable< T> ? -
Available on Obj<
Returns a new lazy Iterable with all elements that have typeIterable< , provided by the ObjIterableNullExt extensionE> ?>T.