I want to do something after performing a big future function, boo, I don’t know how to write code in a dart? code like this:
for (var d in data) { d.loadData().then() } // when all loaded // do something here
but I do not want to wait for them one by one:
for (var d in data) { await d.loadData();
How to write this code to the dart?
source share