toggleActiveTab method
Implementation
void toggleActiveTab(TabType activeTab) {
_tabControllers.forEach((type, controller) {
if (type != activeTab) {
controller.add(TabState.hidden);
}
});
_tabControllers[activeTab]?.add(
TabState.show,
);
}