onChanged property

dynamic Function(bool?) onChanged
final

Function executed when the switch value is changed.

It receives the current value of the switch as a parameter.

Implementation

final Function(bool?) onChanged;