According to the Flutter official docs, didChangeDependencies() is called when a dependency of the State object changes or immediately after initState() . It is safe to call BuildContext.
According to the Flutter official docs, didChangeDependencies() is called when a dependency of the State object changes or immediately after initState() . It is safe to call BuildContext.