I\'m using Flutter to download 3 different sets of data from a server, then do something with all 3 sets. I could do this:
List foos = await downl
I think is not possible to do in a super nice fashion. All you can do is something like this:
void main() async {
List> result = await Future.wait>([
getStringData(),
getIntData(),
]);
print(result[0]);
print(result[1]);
}
Future> getStringData() {
return Future.value(["a", "b"]);
}
Future> getIntData() {
return Future.value([1, 2]);
}