Im using the Provider/ChangenNotifier Pattern to handle state as described in the official docs.
I have a state field which I want to set after a Widget is build. However if I try to set in in the build method. I get an Error:
setState() or markNeedsBuild() called during build.
Where can I call something like:
var state = Provider.of<StateModel>(context);
state.field = 'new Val';