dispatchRebuildThemeState method

void dispatchRebuildThemeState()
inherited

This rebuilds the entire theme state.

It should almost never be used, if you are using it regularly, something is wrong. It should be used only if:

  1. Your fundamental theme state depends on some setting in your application state (for example, a compact mode setting)
  2. The user has just changed that value in the application state (e.g. from the settings area of the app)

In that case, the theme state won't refresh automatically, and you need to call this method to force it to refresh.

Implementation

void dispatchRebuildThemeState() {
  dispatch(AFRebuildThemeState());
}