onChanged property

void Function(bool newValue) onChanged
final

The callback triggered when the state changes.

Implementation

final void Function(bool newValue) onChanged;