search property
The search algorithm used by the widget.
This function is used for local usage of the Field Suggestion widget and is called
for each item in the suggestions
list with the current input as arguments.
The function should return a boolean indicating whether the given item matches the current input. For example:
// Example search function that checks if an item contains the input string.
search: (item, input) => item.toString().contains(input)
Implementation
final bool Function(T item, String input)? search;