executeResetToInitialState method
void
executeResetToInitialState()
inherited
Resets your application state to it's initial state (see your static initialState method). This is often called as part of a signout process.
Note that you have to be a little careful with the ordering of this, as if you are navigating from a screen within your app that references state, back out to a signin screen, Flutter will usually re-render the screen within your app once more as part of the animation. You may need to first do the navigation, then use context.executeDeferredCallback with a ~500 ms delay to allow the animation to complete, then reset the state once you are fully on the signin screen.
Implementation
void executeResetToInitialState() {
dispatch(AFResetToInitialStateAction());
}