onChanged property

ValueChanged<bool>? onChanged
final

Called when the value of the radio button should change.

The radio button passes the new value to the callback but does not actually change state until the parent widget rebuilds the radio button with the new value.

If this callback is null, the radio button will be displayed as disabled and will not respond to input gestures.

Implementation

final ValueChanged<bool>? onChanged;