How to await on a function before Build in a stateful widget?

后端 未结 0 1137
栀梦
栀梦 2020-12-09 04:32

I\'m awaiting a GEOLOCATOR function to fetch location from the user. But during the initial build I always get an error(latitude was called on null) for a few seconds before

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