resolveAll method
Resolve all elements.
Implementation
FutureOr<List<T>> resolveAll() {
var self = this;
if (_isNotFuture(T)) {
if (self is List<T>) {
return self;
} else if (self is Iterable<T>) {
return self.toList();
}
}
var all = allAsList;
if (all.isEmpty) return <T>[];
if (all.isAllResolved) {
return all.cast<T>();
} else {
return Future.wait(all.asFutures);
}
}