Called when a card is tapped, providing the tapped card index.
final ValueChanged<int>? onCardPressed;