copyWith method

SmartSearchConfig copyWith({
  1. Duration? debounceDelay,
  2. int? minSearchLength,
  3. bool? searchOnEmpty,
  4. bool? clearOnClose,
  5. bool? autoFocus,
})

Implementation

SmartSearchConfig copyWith({
  Duration? debounceDelay,
  int? minSearchLength,
  bool? searchOnEmpty,
  bool? clearOnClose,
  bool? autoFocus,
}) {
  return SmartSearchConfig(
    debounceDelay: debounceDelay ?? this.debounceDelay,
    minSearchLength: minSearchLength ?? this.minSearchLength,
    searchOnEmpty: searchOnEmpty ?? this.searchOnEmpty,
    clearOnClose: clearOnClose ?? this.clearOnClose,
    autoFocus: autoFocus ?? this.autoFocus,
  );
}