FutureIterable<E> extension Null safety

Future iterable extension maps the native Iterable properties and methods to the result of a Future that yields an Iterable, in addition with a couple of useful return types and methods.

on

Properties

first Future<E>
Refer to Iterable.first;
read-only
isEmpty Future<bool>
Refer to Iterable.isEmpty;
read-only
isNotEmpty Future<bool>
Refer to Iterable.isNotEmpty;
read-only
iterator Future<Iterator<E>>
Refer to Iterable.iterator;
read-only
last Future<E>
Refer to Iterable.last;
read-only
length Future<int>
Refer to Iterable.length;
read-only
single Future<E>
Refer to Iterable.single;
read-only

Methods

as<T>(T f(E e)) Future<Iterable<T>>
Returns a new lazy Iterable of Type by applying the transformation function. [...]
asList<T>(T f(E e)) Future<List<T>>
Returns a new List of Type by applying the transformation function. [...]
cast<R>() Future<Iterable<R>>
Refer to Iterable.cast;
contains(Object e) Future<bool>
Refer to Iterable.contains;
each(void f(E e)) Future<Iterable<E>>
Refer to Iterable.forEach; [...]
either(bool test(dynamic e)) Future<bool>
Refer to Iterable.any;
elementAt(int index) Future<E>
Refer to Iterable.elementAt;
every(bool test(E e)) Future<bool>
Refer to Iterable.every;
expand<T>(Iterable<T> f(E e)) Future<Iterable<T>>
Refer to Iterable.expand;
firstWhere(bool test(E e), {E orElse()?}) Future<E>
Refer to Iterable.firstWhere;
fold<T>(T i, T combine(T, E)) Future<T>
Refer to Iterable.fold;
followedBy(Iterable<E> other) Future<Iterable<E>>
Refer to Iterable.followedBy;
join([String seperator = ""]) Future<String>
Refer to Iterable.join;
lastWhere(bool test(E e), {E orElse()?}) Future<E>
Refer to Iterable.lastWhere;
map<T>(T f(E e)) Future<Iterable<T>>
Refer to Iterable.map;
reduce(E combine(E v, E e)) Future<E>
Refer to Iterable.reduce;
singleWhere(bool test(E e), {E orElse()?}) Future<E>
Refer to Iterable.singleWhere;
skip(int count) Future<Iterable<E>>
Refer to Iterable.skip;
skipWhile(bool test(E e)) Future<Iterable<E>>
Refer to Iterable.skipWhile;
take(int count) Future<Iterable<E>>
Refer to Iterable.take;
takeWhile(bool test(E e)) Future<Iterable<E>>
Refer to Iterable.takeWhile;
toList({bool growable = true}) Future<List<E>>
Refer to Iterable.toList;
toSet() Future<Set<E>>
Refer to Iterable.toSet;
where(bool test(E e)) Future<Iterable<E>>
Refer to Iterable.where;
whereType<T>() Future<Iterable<T>>
Refer to Iterable.whereType;