Callback when a tab is selected, provides both index and tab object
final void Function(int index, ModTab tab)? onTabSelected;