onChanged property

ValueChanged<bool>? onChanged
final

Called with the requested new value when the user toggles the control. Null disables the switch.

Implementation

final ValueChanged<bool>? onChanged;