onChanged property

void Function(bool)? onChanged
final

Callback when the switch is toggled

Implementation

final void Function(bool)? onChanged;