DocumentSnapshot snapshot1 = await FirebaseFirestore.instance
.collection('users')
.doc('a')
.get();
DocumentSnapshot snapshot2 = await FirebaseFirestore.instance
.collection('users')
.doc('b')
.get();
If implemented in this way, the query statements of snapshot2 cannot be executed until all data of snapshot1 is received. It doesn't happen at the same time.
I want to call a function only when both awaits are finished.