onTabChange property

void Function(int) onTabChange
final

Function to call when onTap of button is triggered.

The tab and button will NOT update unless you manage the state and update selectedIndex with the parameter of this function:

 onTabChange: (int index) {
   selectedIndex = index;
   ... ;
 },

Implementation

final void Function(int) onTabChange;