SearchWidgetConnector<S, ViewModel> constructor
SearchWidgetConnector<S, ViewModel> ({
- Key? key,
- required ViewModelBuilder<
ViewModel> builder, - required String id,
- List<
KeysToSubscribe> ? subscribeTo, - bool? triggerQueryOnInit,
- bool? shouldListenForChanges,
- bool? destroyOnDispose,
- String? credentials,
- String? index,
- String? url,
- AppbaseSettings? appbaseConfig,
- TransformRequest? transformRequest,
- TransformResponse? transformResponse,
- Map<
String, String> ? headers, - QueryType? type,
- Map<
String, dynamic> ? react, - String? queryFormat,
- dynamic dataField,
- String? categoryField,
- String? categoryValue,
- String? nestedField,
- int? from,
- int? size,
- SortType? sortBy,
- String? aggregationField,
- int? aggregationSize,
- Map? after,
- bool? includeNullValues,
- List<
String> ? includeFields, - List<
String> ? excludeFields, - dynamic fuzziness,
- bool? searchOperators,
- bool? highlight,
- dynamic highlightField,
- Map? customHighlight,
- int? interval,
- List<
String> ? aggregations, - String? missingLabel,
- bool? showMissing,
- bool? enableSynonyms,
- String? selectAllLabel,
- bool? pagination,
- bool? queryString,
- Map defaultQuery(
- dynamic searchController
- Map customQuery(
- dynamic searchController
- Future beforeValueChange(
- dynamic value
- void onValueChange(
- dynamic next, {
- dynamic prev,
- void onResults(
- Results next, {
- Results prev,
- void onAggregationData(
- Aggregations next, {
- Aggregations prev,
- void onError(
- dynamic error
- void onRequestStatusChange(})?,
- void onQueryChange(})?,
- bool? enablePopularSuggestions,
- int? maxPopularSuggestions,
- bool? showDistinctSuggestions,
- bool? preserveResults,
- bool clearOnQueryChange = false,
- dynamic value,
- String? distinctField,
- Map? distinctFieldConfig,
- Duration httpRequestTimeout = const Duration(seconds: 30),
- 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);