onChanged property

ValueChanged<T?>? onChanged
final

Called when the user selects an item. If the onChanged callback is null or the list of DropdownButton.items is null then the dropdown button will be disabled,

Implementation

final ValueChanged<T?>? onChanged;