onChanged property
Function executed when the switch value is changed.
It receives the current value of the switch as a parameter.
Implementation
final Function(bool?) onChanged;
Function executed when the switch value is changed.
It receives the current value of the switch as a parameter.
final Function(bool?) onChanged;