copyWith method
FuzzyOptions<T>
copyWith({
- int? location,
- int? distance,
- double? threshold,
- int? maxPatternLength,
- bool? isCaseSensitive,
- Pattern? tokenSeparator,
- bool? findAllMatches,
- int? minTokenCharLength,
- int? minMatchCharLength,
- List<
WeightedKey< ? keys,T> > - bool? shouldSort,
- SorterFn<
T> ? sortFn, - bool? tokenize,
- bool? matchAllTokens,
- bool? verbose,
- bool? shouldNormalize,
Copy these options with some modifications.
Implementation
FuzzyOptions<T> copyWith({
int? location,
int? distance,
double? threshold,
int? maxPatternLength,
bool? isCaseSensitive,
Pattern? tokenSeparator,
bool? findAllMatches,
int? minTokenCharLength,
int? minMatchCharLength,
List<WeightedKey<T>>? keys,
bool? shouldSort,
SorterFn<T>? sortFn,
bool? tokenize,
bool? matchAllTokens,
bool? verbose,
bool? shouldNormalize,
}) =>
FuzzyOptions(
location: location ?? this.location,
distance: distance ?? this.distance,
threshold: threshold ?? this.threshold,
maxPatternLength: maxPatternLength ?? this.maxPatternLength,
isCaseSensitive: isCaseSensitive ?? this.isCaseSensitive,
tokenSeparator: tokenSeparator ?? this.tokenSeparator,
findAllMatches: findAllMatches ?? this.findAllMatches,
minTokenCharLength: minTokenCharLength ?? this.minTokenCharLength,
minMatchCharLength: minMatchCharLength ?? this.minMatchCharLength,
keys: keys ?? this.keys,
shouldSort: shouldSort ?? this.shouldSort,
sortFn: sortFn ?? this.sortFn,
tokenize: tokenize ?? this.tokenize,
matchAllTokens: matchAllTokens ?? this.matchAllTokens,
verbose: verbose ?? this.verbose,
shouldNormalize: shouldNormalize ?? this.shouldNormalize,
);