AutoCompleteTextField class

Inheritance

Constructors

AutoCompleteTextField({Key? key, required List<String> textValues, TextEditingController? controller, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, TextCapitalization textCapitalization = TextCapitalization.none, InputDecoration? decoration = const InputDecoration(), bool obscureText = false, bool autofocus = false, bool autocorrect = true})
Similar to the Material TextField, except that it provides a list of text selections to be used to match what the user has typed.
const

Properties

autocorrect bool
Whether to enable autocorrection.
final
autofocus bool
Whether this text field should focus itself if nothing else is already focused.
final
controller TextEditingController?
final
decoration InputDecoration?
The decoration to show around the text field.
final
hashCode int
The hash code for this object.
no setterinherited
inputFormatters List<TextInputFormatter>?
Optional input validation and formatting overrides.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
The type of keyboard to use for editing the text.
final
obscureText bool
Whether to hide the text being edited (e.g., for passwords).
final
onChanged ValueChanged<String>?
Called when the user initiates a change to the TextField's value: when they have inserted or deleted text.
final
onSubmitted ValueChanged<String>?
Called when the user indicates that they are done editing the text in the field.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textCapitalization TextCapitalization
Configures how the platform keyboard will select an uppercase or lowercase keyboard.
final
textValues List<String>
The list of possible text values to match.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<AutoCompleteTextField>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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