reduce method

The method that returns the new state.

Implementation

@override
HomePageState reduce() {
  state.pageController.jumpToPage(tab.index);
  return state.copyWith(
    currentTab: tab,
  );
}