onValueChanged property

ValueChanged<T> onValueChanged
final

The callback that is called when a new option is tapped.

The segmented control passes the newly selected widget's associated key to the callback but does not actually change state until the parent widget rebuilds the segmented control with the new groupValue.

Implementation

final ValueChanged<T> onValueChanged;