onChanged property

ValueChanged<bool>? onChanged
final

A callback that is called when the state of the checkbox changes.

The callback receives a boolean value indicating whether the checkbox is checked (true) or unchecked (false).

If this is set to null, the checkbox will be displayed as disabled.

Implementation

final ValueChanged<bool>? onChanged;