copyWith method

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

Implementation

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