How to wait for an async method to complete before the return statement runs?

前端 未结 0 891
刺人心
刺人心 2021-02-06 06:47

I need the result of a Firestore query for the return statement. The method returns an empty List, as the return statement is ran before the task is completed.

This is th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题