onChanged property

ValueChanged<T?>? onChanged
final

Called when the user selects a different item.

Receives null when the selection is cleared. Pass null to make the dropdown read-only (same effect as disabled).

Implementation

final ValueChanged<T?>? onChanged;