resolveAllMapped<R> method
Resolves this Futures and maps with mapper
.
Implementation
Future<List<R>> resolveAllMapped<R>(R Function(T e) mapper) {
if (isEmpty) {
return Future.value(<R>[]);
}
return Future.wait(this).then((l) {
return l.map(mapper).toList();
});
}