onChanged property

VoidCallback? onChanged
final

A callback to call whenever the user taps on the button.

Typically used to setState on isChecked.

Implementation

final VoidCallback? onChanged;