onTap property

ValueChanged<int>? onTap
final

Called when one of the items is tapped.

The stateful widget that creates the animated text bar needs to keep track of the index of the selected BarItem and call setState to rebuild the animated text bar with the new currentIndex.

Implementation

final ValueChanged<int>? onTap;