onChanged property

dynamic Function(bool) onChanged
final

onChanged is called when the user toggles the switch left or right

Implementation

final Function(bool) onChanged;