FallbackFormField class

Field configuration used by FallbackPrompt.form.

Constructors

FallbackFormField({required String label, String? placeholder, bool masked = false, String maskChar = '•', bool allowReveal = false, bool required = false, FallbackTextValidator? validator, String? initialValue})
Creates a fallback form field.
const

Properties

allowReveal bool
Whether richer prompts may reveal masked input.
final
hashCode int
The hash code for this object.
no setterinherited
initialValue String?
Optional initial value used when the user submits an empty line.
final
label String
Label shown before the line-mode input prompt.
final
maskChar String
Character used by rich prompts to mask input.
final
masked bool
Whether this field represents masked input in rich prompts.
final
placeholder String?
Optional helper text included in the prompt label.
final
required bool
Whether the field must be non-empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator FallbackTextValidator?
Per-field validator. Return null for success or an error message. Returning '' is also accepted as success for backwards compatibility.
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