TextInputState class

Extended state for text input prompts.

Adds text buffer management, validation state, and visibility toggle on top of the basic PromptState.

Constructors

TextInputState()
Creates a new text input state.

Properties

buffer TextInputBuffer
The text input buffer.
final
error String?
Validation error message (null if valid).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCancelled bool
Whether the prompt was cancelled.
no setter
isConfirmed bool
Whether the prompt was confirmed.
no setter
isEmpty bool
Whether the buffer is empty.
no setter
isNotEmpty bool
Whether the buffer is not empty.
no setter
length int
Length of the text.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showPlain bool
Whether to show plain text (for password prompts).
getter/setter pair
text String
The current text value.
no setter
valid bool
Whether input is currently valid.
getter/setter pair

Methods

cancel() → void
Marks the prompt as cancelled.
clearError() → void
Clears validation error.
confirm() → void
Marks the prompt as confirmed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setError(String message) → void
Sets validation error.
toggleVisibility() → void
Toggles plain text visibility (for passwords).
toString() String
A string representation of this object.
inherited

Operators

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