onChanged property
Callback fired when the checkbox state changes.
Called with the new CheckboxState when user interaction occurs. If both controller and onChanged are provided, both will receive updates.
Implementation
@override
final ValueChanged<CheckboxState>? onChanged;