customizeAsyncAs<R> method
Implementation
Future<Iterable<R>> customizeAsyncAs<R>(
Future<R> Function(E element) combine, [
bool Function(R value)? checker,
]) async {
List<R> initial = [];
Iterator<E> iterator = this.iterator;
if (!iterator.moveNext()) return initial;
R value = await combine(iterator.current);
if (checker == null || checker(value)) initial.add(value);
while (iterator.moveNext()) {
R value = await combine(iterator.current);
if (checker == null || checker(value)) initial.add(value);
}
return initial;
}