onChanged property

ValueChanged<T?>? onChanged
final

Called when the user selects an item.

If the onChanged callback is null or the list of MacosPopupButton.items is null then the popup button will be disabled, i.e. its up/down caret will be displayed in grey and it will not respond to input. A disabled button will display the MacosPopupButton.disabledHint widget if it is non-null. If MacosPopupButton.disabledHint is also null but MacosPopupButton.hint is non-null, MacosPopupButton.hint will instead be displayed.

Implementation

final ValueChanged<T?>? onChanged;