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 if it exists as the chosen result.
Implementation
final void Function({
required T? item,
required String searchQuery,
})? onSubmit;