SearchSuggestSessionSuggestListener constructor

SearchSuggestSessionSuggestListener({
  1. required void onResponse(
    1. SuggestResponse suggest
    ),
  2. required void onError(
    1. Error error
    ),
})

Implementation

factory SearchSuggestSessionSuggestListener(
    {required void Function(search_suggest_response.SuggestResponse suggest)
        onResponse,
    required void Function(runtime_error.Error error) onError}) {
  return SearchSuggestSessionSuggestListenerImpl(
    onResponse: onResponse,
    onError: onError,
  );
}