FacetSearchState class final

Represents a search for facet values operation state, and an abstraction over facet search queries.

Example

final facetSearchState = FacetSearchState(
  searchState: const SearchState(indexName: 'MY_INDEX_NAME'),
  facet: 'brand',
  facetQuery: 'samsung',
);
Implemented types

Constructors

FacetSearchState({required String facet, required SearchState searchState, String facetQuery = ''})
Creates FacetSearchState instance.
const

Properties

facet String
Facet name to search for
final
facetQuery String
Text to search inside the facet’s values.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchState SearchState
Search operation state
final

Methods

copyWith({String? facet, String? facetQuery, SearchState? searchState}) FacetSearchState
Make a copy of the search state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override