onChanged property

ValueChanged<bool>? onChanged
final

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;