onChanged property
Called with the requested next state on activation; null disables it.
Implementation
final void Function(bool value)? onChanged;
Called with the requested next state on activation; null disables it.
final void Function(bool value)? onChanged;