kFastFastItemFuzzyOptions top-level property
FuzzyOptions
<FastItem>
kFastFastItemFuzzyOptions
final
Implementation
final kFastFastItemFuzzyOptions = FuzzyOptions(
isCaseSensitive: kFastFuzzyOptions.isCaseSensitive,
shouldNormalize: kFastFuzzyOptions.shouldNormalize,
shouldSort: kFastFuzzyOptions.shouldSort,
location: kFastFuzzyOptions.location,
threshold: kFastFuzzyOptions.threshold,
distance: kFastFuzzyOptions.distance,
findAllMatches: kFastFuzzyOptions.findAllMatches,
minMatchCharLength: kFastFuzzyOptions.minMatchCharLength,
keys: [
WeightedKey<FastItem>(
name: 'labelText',
getter: (FastItem item) => item.labelText,
weight: 1,
),
WeightedKey(
name: 'descriptionText',
getter: (FastItem item) => item.descriptionText ?? kFastEmptyString,
weight: 0.5,
),
],
);