SearchCallback<T> typedef
A callback function that returns the index of the item that matches the current contents of a text field.
If a match doesn't exist then null must be returned.
Used by DropdownMenu.searchCallback.
Implementation
typedef SearchCallback<T> = int? Function(List<DropdownMenuEntry<T>> entries, String query);