onChanged property
final
Called when the value of the switch should change.
Setting this to null will disable the widget.
Implementation
final ValueChanged<bool?>? onChanged;
Called when the value of the switch should change.
Setting this to null will disable the widget.
final ValueChanged<bool?>? onChanged;