SearchSessionSearchListener constructor

SearchSessionSearchListener({
  1. required void onSearchResponse(
    1. SearchResponse response
    ),
  2. required void onSearchError(
    1. Error error
    ),
})

Implementation

factory SearchSessionSearchListener(
    {required void Function(search_response.SearchResponse response)
        onSearchResponse,
    required void Function(runtime_error.Error error) onSearchError}) {
  return SearchSessionSearchListenerImpl(
    onSearchResponse: onSearchResponse,
    onSearchError: onSearchError,
  );
}