onChanged property
An optional callback that is called when the switch is toggled. If this is not provided, the switch will be considered disabled.
Implementation
final ValueChanged<bool>? onChanged;
An optional callback that is called when the switch is toggled. If this is not provided, the switch will be considered disabled.
final ValueChanged<bool>? onChanged;