onChanged property

ValueChanged<bool?>? onChanged
final

Called when the value of the switch should change.

Setting this to null will disable the widget.

Implementation

final ValueChanged<bool?>? onChanged;