IterableFutureOrExtension<T> extension
Extension for Iterable<FutureOr<T>>
.
Properties
-
allAsList
→ List<
FutureOr< T> > -
Available on Iterable<
Returns all elements in a List. Ensures that an Iterable is fully constructed.FutureOr< , provided by the IterableFutureOrExtension extensionT> >no setter -
asFutures
→ List<
Future< T> > -
Available on Iterable<
Returns all FutureOr elements as Future.FutureOr< , provided by the IterableFutureOrExtension extensionT> >no setter - isAllFuture → bool
-
Available on Iterable<
ReturnsFutureOr< , provided by the IterableFutureOrExtension extensionT> >true
if all elements are a Future.no setter - isAllResolved → bool
-
Available on Iterable<
ReturnsFutureOr< , provided by the IterableFutureOrExtension extensionT> >true
if all elements are resolved, NOT a Future.no setter
Methods
-
resolveAll(
) → FutureOr< List< T> > -
Available on Iterable<
Resolve all elements.FutureOr< , provided by the IterableFutureOrExtension extensionT> > -
resolveAllJoined<
R> (FutureOr< R> joiner(List<T> r)) → FutureOr<R> -
Available on Iterable<
Resolves all elements and join them withFutureOr< , provided by the IterableFutureOrExtension extensionT> >joiner
. -
resolveAllMapped<
R> (R mapper(T e)) → FutureOr< List< R> > -
Available on Iterable<
Resolves all elements and map them withFutureOr< , provided by the IterableFutureOrExtension extensionT> >mapper
. -
resolveAllReduced<
R> (T reducer(T value, T element)) → FutureOr< T> -
Available on Iterable<
Resolves all elements and reduce them withFutureOr< , provided by the IterableFutureOrExtension extensionT> >reducer
. -
resolveAllThen<
R> (FutureOr< R> onValues(List<T> values)) → FutureOr<R> -
Available on Iterable<
Same asFutureOr< , provided by the IterableFutureOrExtension extensionT> >Future.wait(this).then
. -
resolveAllValidated(
bool validate(T e), {T? defaultValue}) → FutureOr< List< T> > -
Available on Iterable<
Resolves all elements andFutureOr< , provided by the IterableFutureOrExtension extensionT> >validate
them. If an element is not valid will usedefaultValue
. -
resolveAllWith<
R> (FutureOr< R> resolver()) → FutureOr<R> -
Available on Iterable<
Resolves all elements then resolves withFutureOr< , provided by the IterableFutureOrExtension extensionT> >resolver
result. -
resolveAllWithValue<
V> (V value) → FutureOr< V> -
Available on Iterable<
Resolves all elements then resolves withFutureOr< , provided by the IterableFutureOrExtension extensionT> >value
. -
selectFutures(
) → List< Future< T> > -
Available on Iterable<
Selects all elements that are a Future and returns a List of them.FutureOr< , provided by the IterableFutureOrExtension extensionT> > -
selectResolved(
) → List< T> -
Available on Iterable<
Selects all elements that are resolved (of typeFutureOr< , provided by the IterableFutureOrExtension extensionT> >T
) -
waitFutures(
) → FutureOr< List< T> > -
Available on Iterable<
Wait all elements that are Future.FutureOr< , provided by the IterableFutureOrExtension extensionT> > -
waitFuturesAndReturnValue<
V> (V value) → FutureOr< V> -
Available on Iterable<
Waits futures and returnsFutureOr< , provided by the IterableFutureOrExtension extensionT> >value
. -
whereFuture(
) → Iterable< Future< T> > -
Available on Iterable<
Filters to Future elements.FutureOr< , provided by the IterableFutureOrExtension extensionT> > -
whereResolved(
) → Iterable< T> -
Available on Iterable<
Filters to resolved elements (of typeFutureOr< , provided by the IterableFutureOrExtension extensionT> >T
).