onChanged property

ValueChanged<bool>? onChanged
final

Callback fired when the button's active state changes.

Useful for toggle buttons. The callback receives the new active state.

Implementation

final ValueChanged<bool>? onChanged;