How can I register the async object to get_it package without making the main() async?

后端 未结 0 2029
醉酒成梦
醉酒成梦 2021-02-01 14:49

I want to register the SharedPrefrences object in the get_it package to access it from all around the app and not make the main() async.

  1. Is it the right way?
  2. <
相关标签:
回答
  • 消灭零回复
提交回复
热议问题