Callback when an item is selected by mouse click or other interaction.
final void Function(int)? onSelect;