FutureIterable<E> extension
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.
Properties
-
first
→ Future<
E> -
Available on Future<
Refer to Iterable.first;Iterable< , provided by the FutureIterable extensionE> >no setter -
isEmpty
→ Future<
bool> -
Available on Future<
Refer to Iterable.isEmpty;Iterable< , provided by the FutureIterable extensionE> >no setter -
isNotEmpty
→ Future<
bool> -
Available on Future<
Refer to Iterable.isNotEmpty;Iterable< , provided by the FutureIterable extensionE> >no setter -
iterator
→ Future<
Iterator< E> > -
Available on Future<
Refer to Iterable.iterator;Iterable< , provided by the FutureIterable extensionE> >no setter -
last
→ Future<
E> -
Available on Future<
Refer to Iterable.last;Iterable< , provided by the FutureIterable extensionE> >no setter -
length
→ Future<
int> -
Available on Future<
Refer to Iterable.length;Iterable< , provided by the FutureIterable extensionE> >no setter -
single
→ Future<
E> -
Available on Future<
Refer to Iterable.single;Iterable< , provided by the FutureIterable extensionE> >no setter
Methods
-
as<
T> (T f(E e)) → Future< Iterable< T> > -
Available on Future<
Returns a new lazy Iterable of Type by applying the transformation function.Iterable< , provided by the FutureIterable extensionE> > -
asList<
T> (T f(E e)) → Future< List< T> > -
Available on Future<
Returns a new List of Type by applying the transformation function.Iterable< , provided by the FutureIterable extensionE> > -
cast<
R> () → Future< Iterable< R> > -
Available on Future<
Refer to Iterable.cast;Iterable< , provided by the FutureIterable extensionE> > -
contains(
Object e) → Future< bool> -
Available on Future<
Refer to Iterable.contains;Iterable< , provided by the FutureIterable extensionE> > -
each(
void f(E e)) → Future< Iterable< E> > -
Available on Future<
Refer to Iterable.forEach;Iterable< , provided by the FutureIterable extensionE> > -
either(
bool test(dynamic e)) → Future< bool> -
Available on Future<
Refer to Iterable.any;Iterable< , provided by the FutureIterable extensionE> > -
elementAt(
int index) → Future< E> -
Available on Future<
Refer to Iterable.elementAt;Iterable< , provided by the FutureIterable extensionE> > -
every(
bool test(E e)) → Future< bool> -
Available on Future<
Refer to Iterable.every;Iterable< , provided by the FutureIterable extensionE> > -
expand<
T> (Iterable< T> f(E e)) → Future<Iterable< T> > -
Available on Future<
Refer to Iterable.expand;Iterable< , provided by the FutureIterable extensionE> > -
firstWhere(
bool test(E e), {E orElse()?}) → Future< E> -
Available on Future<
Refer to Iterable.firstWhere;Iterable< , provided by the FutureIterable extensionE> > -
fold<
T> (T i, T combine(T, E)) → Future< T> -
Available on Future<
Refer to Iterable.fold;Iterable< , provided by the FutureIterable extensionE> > -
followedBy(
Iterable< E> other) → Future<Iterable< E> > -
Available on Future<
Refer to Iterable.followedBy;Iterable< , provided by the FutureIterable extensionE> > -
join(
[String seperator = ""]) → Future< String> -
Available on Future<
Refer to Iterable.join;Iterable< , provided by the FutureIterable extensionE> > -
lastWhere(
bool test(E e), {E orElse()?}) → Future< E> -
Available on Future<
Refer to Iterable.lastWhere;Iterable< , provided by the FutureIterable extensionE> > -
map<
T> (T f(E e)) → Future< Iterable< T> > -
Available on Future<
Refer to Iterable.map;Iterable< , provided by the FutureIterable extensionE> > -
reduce(
E combine(E v, E e)) → Future< E> -
Available on Future<
Refer to Iterable.reduce;Iterable< , provided by the FutureIterable extensionE> > -
singleWhere(
bool test(E e), {E orElse()?}) → Future< E> -
Available on Future<
Refer to Iterable.singleWhere;Iterable< , provided by the FutureIterable extensionE> > -
skip(
int count) → Future< Iterable< E> > -
Available on Future<
Refer to Iterable.skip;Iterable< , provided by the FutureIterable extensionE> > -
skipWhile(
bool test(E e)) → Future< Iterable< E> > -
Available on Future<
Refer to Iterable.skipWhile;Iterable< , provided by the FutureIterable extensionE> > -
take(
int count) → Future< Iterable< E> > -
Available on Future<
Refer to Iterable.take;Iterable< , provided by the FutureIterable extensionE> > -
takeWhile(
bool test(E e)) → Future< Iterable< E> > -
Available on Future<
Refer to Iterable.takeWhile;Iterable< , provided by the FutureIterable extensionE> > -
toList(
{bool growable = true}) → Future< List< E> > -
Available on Future<
Refer to Iterable.toList;Iterable< , provided by the FutureIterable extensionE> > -
toSet(
) → Future< Set< E> > -
Available on Future<
Refer to Iterable.toSet;Iterable< , provided by the FutureIterable extensionE> > -
where(
bool test(E e)) → Future< Iterable< E> > -
Available on Future<
Refer to Iterable.where;Iterable< , provided by the FutureIterable extensionE> > -
whereType<
T> () → Future< Iterable< T> > -
Available on Future<
Refer to Iterable.whereType;Iterable< , provided by the FutureIterable extensionE> >