SuggestCallbackExtended typedef
The method will be called on the main thread when a suggest call has been completed.
The first argument indicates an error in case of a failure. The second argument contains the results.
Both arguments cannot be null at the same time - or not null at the same time.
This API is not supported by offline search.
-
searchErrorAn error enum indicating what went wrong. It isnullfor an operation that succeeds. -
suggestionsThe list of suggestion results. It isnullin case of an error. -
responseDetailsAdditional information provided with response. It isnullin case of an error.
Implementation
typedef SuggestCallbackExtended = void Function(SearchError? searchError, List<Suggestion>? suggestions, ResponseDetails? responseDetails);