SuggestionFieldConfig class
Configuration class for SuggestionTextField
Constructors
- SuggestionFieldConfig({int maxHistoryItems = 50, bool showRemoveButton = true, bool enableSuggestions = true, Duration animationDuration = const Duration(milliseconds: 300), double maxSuggestionsHeight = 200, double suggestionBoxMargin = 8.0, bool filterOnTyping = true, int minCharsForSuggestions = 1, HistoryStorageType storageType = HistoryStorageType.persistent, double horizontalMargin = 16.0})
-
const
Properties
- animationDuration → Duration
-
Animation duration for suggestion box
final
- enableSuggestions → bool
-
Whether suggestions are enabled
final
- filterOnTyping → bool
-
Whether to filter suggestions as user types
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalMargin → double
-
Horizontal margin for suggestions box from screen edges
final
- maxHistoryItems → int
-
Maximum number of search history items to store
final
- maxSuggestionsHeight → double
-
Maximum height for suggestions list
final
- minCharsForSuggestions → int
-
Minimum characters to show suggestions
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showRemoveButton → bool
-
Whether to show the remove button for each suggestion
final
- storageType → HistoryStorageType
-
Storage type for history
final
- suggestionBoxMargin → double
-
Margin between text field and suggestions box
final
Methods
-
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