SmartSearchConfig class
Configuration for search behavior.
Constructors
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
- fetchOnInit → bool
-
Whether to fetch data immediately when the controller is created (default: false).
When true and searchOnEmpty is also true, the initial data will be fetched
as soon as the controller is initialized, without waiting for user interaction.
This is useful for pre-loading data before the overlay is shown.
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
- skipDebounceOnEmpty → bool
-
Whether to skip debounce delay when search text is empty (default: true).
When true and searchOnEmpty is also true, the search will be triggered
immediately when the text becomes empty, without waiting for the debounce delay.
This is useful for showing all data immediately when the user clears the search.
final
Methods
-
copyWith(
{Duration? debounceDelay, int? minSearchLength, bool? searchOnEmpty, bool? skipDebounceOnEmpty, bool? fetchOnInit, 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