SearchWidgetConnector<S, ViewModel> constructor

SearchWidgetConnector<S, ViewModel>({
  1. Key? key,
  2. required ViewModelBuilder<ViewModel> builder,
  3. required String id,
  4. List<KeysToSubscribe>? subscribeTo,
  5. bool? triggerQueryOnInit,
  6. bool? shouldListenForChanges,
  7. bool? destroyOnDispose,
  8. String? credentials,
  9. String? index,
  10. String? url,
  11. AppbaseSettings? appbaseConfig,
  12. TransformRequest? transformRequest,
  13. TransformResponse? transformResponse,
  14. Map<String, String>? headers,
  15. QueryType? type,
  16. Map<String, dynamic>? react,
  17. String? queryFormat,
  18. dynamic dataField,
  19. String? categoryField,
  20. String? categoryValue,
  21. String? nestedField,
  22. int? from,
  23. int? size,
  24. SortType? sortBy,
  25. String? aggregationField,
  26. int? aggregationSize,
  27. Map? after,
  28. bool? includeNullValues,
  29. List<String>? includeFields,
  30. List<String>? excludeFields,
  31. dynamic fuzziness,
  32. bool? searchOperators,
  33. bool? highlight,
  34. dynamic highlightField,
  35. Map? customHighlight,
  36. int? interval,
  37. List<String>? aggregations,
  38. String? missingLabel,
  39. bool? showMissing,
  40. bool? enableSynonyms,
  41. String? selectAllLabel,
  42. bool? pagination,
  43. bool? queryString,
  44. Map defaultQuery(
    1. dynamic searchController
    )?,
  45. Map customQuery(
    1. dynamic searchController
    )?,
  46. Future beforeValueChange(
    1. dynamic value
    )?,
  47. void onValueChange(
    1. dynamic next, {
    2. dynamic prev,
    })?,
  48. void onResults(
    1. Results next, {
    2. Results prev,
    })?,
  49. void onAggregationData(
    1. Aggregations next, {
    2. Aggregations prev,
    })?,
  50. void onError(
    1. dynamic error
    )?,
  51. void onRequestStatusChange(
    1. String next, {
    2. String prev,
    })?,
  52. void onQueryChange(
    1. List<Map>? next, {
    2. List<Map>? prev,
    })?,
  53. bool? enablePopularSuggestions,
  54. int? maxPopularSuggestions,
  55. bool? showDistinctSuggestions,
  56. bool? preserveResults,
  57. bool clearOnQueryChange = false,
  58. dynamic value,
  59. String? distinctField,
  60. Map? distinctFieldConfig,
  61. Duration httpRequestTimeout = const Duration(seconds: 30),
  62. CompoundClauseType? compoundClause,
})

Implementation

SearchWidgetConnector({
  Key? key,
  required this.builder,
  required this.id,
  this.subscribeTo,
  this.triggerQueryOnInit,
  this.shouldListenForChanges,
  this.destroyOnDispose,
  // properties to configure search component
  this.credentials,
  this.index,
  this.url,
  this.appbaseConfig,
  this.transformRequest,
  this.transformResponse,
  this.headers,
  this.type,
  this.react,
  this.queryFormat,
  this.dataField,
  this.categoryField,
  this.categoryValue,
  this.nestedField,
  this.from,
  this.size,
  this.sortBy,
  this.aggregationField,
  this.aggregationSize,
  this.after,
  this.includeNullValues,
  this.includeFields,
  this.excludeFields,
  this.fuzziness,
  this.searchOperators,
  this.highlight,
  this.highlightField,
  this.customHighlight,
  this.interval,
  this.aggregations,
  this.missingLabel,
  this.showMissing,
  this.enableSynonyms,
  this.selectAllLabel,
  this.pagination,
  this.queryString,
  this.defaultQuery,
  this.customQuery,
  this.beforeValueChange,
  this.onValueChange,
  this.onResults,
  this.onAggregationData,
  this.onError,
  this.onRequestStatusChange,
  this.onQueryChange,
  this.enablePopularSuggestions,
  this.maxPopularSuggestions,
  this.showDistinctSuggestions,
  this.preserveResults,
  this.clearOnQueryChange = false,
  this.value,
  this.distinctField,
  this.distinctFieldConfig,
  this.httpRequestTimeout = const Duration(seconds: 30),
  this.compoundClause,
}) : super(key: key);