toggleActiveTab method

void toggleActiveTab(
  1. TabType activeTab
)

Implementation

void toggleActiveTab(TabType activeTab) {
  _tabControllers.forEach((type, controller) {
    if (type != activeTab) {
      controller.add(TabState.hidden);
    }
  });

  _tabControllers[activeTab]?.add(
    TabState.show,
  );
}