Can I use multiple method on a future builder?
Solution 1:
You can use Future.wait(Future[])
to return a list of futures.
Future<String> foo;
Future<int> bar;
FutureBuilder(
future: Future.wait([bar, foo]),
builder: (context, AsyncSnapshot<List<dynamic>> snapshot) {
snapshot.data[0]; //bar
snapshot.data[1]; //foo
},
);