InputOptions class

Annotations

Constructors

InputOptions({InputClearMode inputClearMode = InputClearMode.always, TextInputType keyboardType = TextInputType.multiline, void onTextChanged(String)?, VoidCallback? onTextFieldTap, SendButtonVisibilityMode sendButtonVisibilityMode = SendButtonVisibilityMode.editing, TextEditingController? textEditingController, bool autocorrect = true, bool autofocus = false, bool enableSuggestions = true, bool enabled = true})
const

Properties

autocorrect bool
Controls the TextInput autocorrect behavior. Defaults to true.
final
autofocus bool
Whether TextInput should have focus. Defaults to false.
final
enabled bool
Controls the TextInput enabled behavior. Defaults to true.
final
enableSuggestions bool
Controls the TextInput enableSuggestions behavior. Defaults to true.
final
hashCode int
The hash code for this object.
no setterinherited
inputClearMode InputClearMode
Controls the Input clear behavior. Defaults to InputClearMode.always.
final
keyboardType TextInputType
Controls the Input keyboard type. Defaults to TextInputType.multiline.
final
onTextChanged → (void Function(String)?)
Will be called whenever the text inside TextField changes.
final
onTextFieldTap VoidCallback?
Will be called on TextField tap.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendButtonVisibilityMode SendButtonVisibilityMode
Controls the visibility behavior of the SendButton based on the TextField state inside the Input widget. Defaults to SendButtonVisibilityMode.editing.
final
textEditingController TextEditingController?
Custom TextEditingController. If not provided, defaults to the InputTextFieldController, which extends TextEditingController and has additional fatures like markdown support. If you want to keep additional features but still need some methods from the default TextEditingController, you can create your own InputTextFieldController (imported from this lib) and pass it here.
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