Called when the user taps the checkbox. Receives the new checked state.
final Function(bool?)? onTap;