Open1
【Flutter】高度な非同期処理 (Future, Stream, Completer, isolates)
Future
Future.value()
複数のFutureを待つ
Future.wait
にfutureの配列を渡す
import 'dart:async';
Future main() async {
var data = [];
var futures = <Future>[];
for (var d in data) {
futures.add(d.loadData());
}
await Future.wait(futures);
}