DVInMemorySearchProvider<TModel, TFacets> constructor
DVInMemorySearchProvider<TModel, TFacets> ({
- required List<
TModel> records, - required DVSearchDocument<
TModel> document, - DVSearchFacetMatcher<
TModel, TFacets> ? facetMatcher, - Map<
String, String Function(TModel)> ? facetValues, - DVSearchTuning tuning = const DVSearchTuning(),
Implementation
DVInMemorySearchProvider({
required List<TModel> records,
required this.document,
this.facetMatcher,
// Not a const default: TModel is a type variable, which a const literal
// cannot mention.
Map<String, String Function(TModel)>? facetValues,
this.tuning = const DVSearchTuning(),
}) : records = List<TModel>.unmodifiable(records),
facetValues =
facetValues ?? <String, String Function(TModel)>{};