onTap property
final
Called when an item is tapped with the index of the tapped item.
Implementation
final void Function(int value)? onTap;
Called when an item is tapped with the index of the tapped item.
final void Function(int value)? onTap;