onChanged property

ValueChanged<bool>? onChanged
final

Called when the user toggles the switch; null disables interaction.

Implementation

final ValueChanged<bool>? onChanged;