onChanged property

dynamic Function(bool value) onChanged
final

Called when the user toggles the switch on or off.

Implementation

final Function(bool value) onChanged;