onSubmit property
The handler for when a user submits the search bar input field by hitting enter
. Provides the top item from
the current of search results as the implied chosen result.
Implementation
final void Function({required T item, required String searchQuery})? onSubmit;