onChanged property

ValueChanged<bool>? onChanged
final

Called with the toggled boolean value (!value) when the user activates the button via touch, keyboard (Space/Enter), or assistive technology.

If null, the toggle button is disabled.

Implementation

final ValueChanged<bool>? onChanged;