onChanged property
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;
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,
final ValueChanged<T?>? onChanged;