onChanged property

void Function(bool newValue) onChanged
final

The callback triggered when the state toggles.

Implementation

final void Function(bool newValue) onChanged;