SmartSearchConfig class

Configuration for search behavior.

Constructors

SmartSearchConfig({Duration debounceDelay = const Duration(seconds: 1), int minSearchLength = 0, bool searchOnEmpty = true, bool clearOnClose = true, bool autoFocus = false})
const

Properties

autoFocus bool
Whether to auto-focus the search field.
final
clearOnClose bool
Whether to clear search text when overlay is closed.
final
debounceDelay Duration
Delay before triggering search after user stops typing (default: 1 second).
final
hashCode int
The hash code for this object.
no setterinherited
minSearchLength int
Minimum characters required to trigger search (default: 0 - search on any input).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchOnEmpty bool
Whether to trigger search when input is empty (default: true - fetch all data).
final

Methods

copyWith({Duration? debounceDelay, int? minSearchLength, bool? searchOnEmpty, bool? clearOnClose, bool? autoFocus}) SmartSearchConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited