onTabClick method

void onTabClick(
  1. FoTabComponent tab
)

Implementation

void onTabClick(FoTabComponent tab) {
  if (!disabled) {
    for (final t in tabs) {
      t.active = false;
    }
    tab.active = true;
    _tabIndexChangeController.add(tabs.indexOf(tab));
  }
}