Callback when the chip is tapped, returns output and index of last chip selected.
final void Function(String, int)? onTap;