问题描述
image I want to use fetchdata() in another provider method and initialise variables
解决方法
var prevProvider = Provider.of<PrevProvider>(context,listen: false);
await prevProvider.fetchdata();
希望能成功
image I want to use fetchdata() in another provider method and initialise variables
var prevProvider = Provider.of<PrevProvider>(context,listen: false);
await prevProvider.fetchdata();
希望能成功