reduce method

The method that returns the new state.

Implementation

@override
HomePageState reduce() {
  WidgetsBinding.instance.addPostFrameCallback((_) {
    if (!state.pageController.hasClients) {
      return;
    }
    state.pageController.jumpToPage(state.currentTab.index);
  });
  return state;
}