onChanged property

ValueChanged<CheckboxState>? onChanged
final

Callback fired when the user interacts with the checkbox.

Called with the new CheckboxState that should be applied. When null, the checkbox becomes non-interactive and visually disabled.

The callback is responsible for updating the parent widget's state to reflect the change - this widget does not manage its own state.

Implementation

final ValueChanged<CheckboxState>? onChanged;