Setting a navigators key gives void error

后端 未结 0 1429
庸人自扰
庸人自扰 2021-02-04 11:17

How can i set a navigators key from a provider? I tried key: Provider.of(context).setHomeKey(), but I get an error saying:

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