map static method
dynamic
map(
- List ary,
- dynamic each(
- dynamic _,
- dynamic callback(
- dynamic msg
- dynamic done(
- dynamic results
Implementation
static map(List ary, Function(dynamic _, Function(dynamic msg) callback) each,
Function(dynamic results) done) {
var result = [];
Future.wait(ary.map((e) {
return Future.microtask(() => each(e, (msg) {
result.add(msg);
}));
})).then((r) => done(result));
}