onChange property
Everytime the tab index changed, this method is called.
If callOnChangeWhileIndexIsChanging is true this method is also called while we're animating from previousIndex to index as a consequence of calling animateTo.
Implementation
final void Function(int)? onChange;