onSearch property

Future<List<T>> Function(String query)? onSearch
final

An optional callback for asynchronous search.

If provided, this function will be called with the search query. It should return a Future that resolves to a list of matching items.

Implementation

final Future<List<T>> Function(String query)? onSearch;