RangeInput constructor
RangeInput({
- Key? key,
- required String id,
- List<
KeysToSubscribe> ? subscribeTo, - bool? shouldListenForChanges,
- bool? destroyOnDispose,
- bool? triggerQueryOnInit,
- String? credentials,
- String? index,
- String? url,
- AppbaseSettings? appbaseConfig,
- TransformRequest? transformRequest,
- TransformResponse? transformResponse,
- Map<
String, String> ? headers, - 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,
- List<
Map> ? results, - String? distinctField,
- Map? distinctFieldConfig,
- Widget buildTitle()?,
- Widget buildRangeLabel()?,
- required RangeType range,
- DefaultValue? defaultValue,
- RangeLabelsType? rangeLabels,
- bool validateRange(
- dynamic start,
- dynamic end
- Widget buildErrorMessage(
- dynamic start,
- dynamic end
- TextStyle? inputStyle,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextStyle? dropdownStyle,
- Container customContainer()?,
- Widget closeIcon()?,
- Widget dropdownIcon(
- bool showError
- bool triggerQueryOnMount = true,
- Duration httpRequestTimeout = const Duration(seconds: 30),
- CompoundClauseType? compoundClause,
Implementation
RangeInput({
Key? key,
required this.id,
this.subscribeTo,
this.shouldListenForChanges,
this.destroyOnDispose,
this.triggerQueryOnInit,
// properties to configure search component
this.credentials,
this.index,
this.url,
this.appbaseConfig,
this.transformRequest,
this.transformResponse,
this.headers,
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.results,
this.distinctField,
this.distinctFieldConfig,
this.buildTitle,
this.buildRangeLabel,
required this.range,
this.defaultValue,
this.rangeLabels,
this.validateRange,
this.buildErrorMessage,
this.inputStyle,
this.keyboardType,
this.textInputAction,
this.dropdownStyle,
this.customContainer,
this.closeIcon,
this.dropdownIcon,
this.triggerQueryOnMount = true,
this.httpRequestTimeout = const Duration(seconds: 30),
this.compoundClause,
}) : super(key: key);