How to wait till function returns value flutter

前端 未结 0 1664
猫巷女王i
猫巷女王i 2021-01-15 13:23

I have a function which gets object from SQFlite db with id ,

    var unit =  await getUnitById(1);

The function looks like this



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