AutoCompleteMode enum
Text replacement strategies for autocomplete suggestion application.
Defines how selected autocomplete suggestions modify the existing text field content. Each mode provides different behavior for integrating suggestions with current text.
Values
- append → const AutoCompleteMode
-
Appends the suggestion to the current text field content.
Adds the selected suggestion at the current cursor position without removing any existing text. Useful for building compound inputs or adding multiple values.
- replaceWord → const AutoCompleteMode
-
Replaces the current word with the selected suggestion.
Identifies the word boundary around the cursor and replaces only that word with the suggestion. This is the default mode and most common autocomplete behavior for text completion.
- replaceAll → const AutoCompleteMode
-
Replaces all text field content with the selected suggestion.
Clears the entire text field and sets it to the selected suggestion. Useful for search fields or when suggestions represent complete values rather than partial completions.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
AutoCompleteMode> - A constant List of the values in this enum, in order of their declaration.