Called when a card is pressed; provides the tapped card's index.
final ValueChanged<int>? onCardPressed;