resolveAllWithValue<V> method
Resolves all elements then resolves with value
.
Implementation
FutureOr<V> resolveAllWithValue<V>(V value) {
var self = this;
if (_isNotFuture(T) && (self is List<T> || self is Set<T>)) {
return value;
}
var all = allAsList;
if (all.isAllResolved) {
return value;
} else {
return Future.wait(all.asFutures).then((r) => value);
}
}