init state is a method that can be used only to initialize the state the first time the widget is built. If you need to perform actions every time the widget is rebuilt use inside your build method (before returning)
WidgetsBinding.instance.addPostFrameCallback((_) {
// executes after build
})
However, think carefully if what you are doing is correct. And remember that if you are setting a state inside this method you have to use set state.
InitState is not supposed to be re-executed since (usually) set state is the way you update the state afterwards. If you need to reload resources from external "sources" you can use futurebuilder or StreamBuilder
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…