SearchSessionSearchListener constructor
SearchSessionSearchListener({
- required void onSearchResponse(
- SearchResponse response
- required void onSearchError(
- 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,
);
}