onSelected property Null safety
Called when an option is selected by the user.
Any TextEditingController listeners will not be called when the user selects an option, even though the field will update with the selected value, so use this to be informed of selection.
final AutocompleteOnSelected<T>? onSelected;