TextInputModel class final
Single-line text field with full Bubbletea-compatible feature set.
Constructors
Properties
- charLimit → int
-
Maximum number of characters. 0 = unlimited.
final
- cursorPos → int
-
Cursor position within value (0 = before first char, value.length = after last).
final
- echoMode → EchoMode
-
final
- focused → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
final
- placeholder → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- styles → InputStyles
-
final
-
suggestions
→ List<
String> -
Suggested completions. The first entry that starts with value is shown
dimmed after the cursor; Tab accepts it.
final
- validate → bool Function(String value)?
-
Optional validation called on Enter. Return
falseto reject input and emit ValidationFailedMsg.final - value → String
-
final
Methods
-
copyWith(
{String? value, int? cursorPos, String? placeholder, String? label, EchoMode? echoMode, int? charLimit, bool? focused, bool validate(String)?, List< String> ? suggestions, InputStyles? styles}) → TextInputModel -
init(
) → Cmd? -
Optional command to run after the model is first installed.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → (Model, Cmd?) -
Handle the next message; return the new model and an optional follow-up command.
override
-
view(
) → View -
Render the full program state.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited