onChanged property

dynamic Function(dynamic value)? onChanged
latefinal

Callback function invoked when the user selects an option from the dropdown.

The callback receives the value of the selected FormOption when the user makes a selection from the dropdown menu.

Implementation

late final Function(dynamic value)? onChanged;