RTextFieldSpec class final

TextField specification (static, from widget props).

Contains text content metadata and display options. This is the "what" of the field (not the "how" — that's the renderer).

Annotations

Constructors

RTextFieldSpec({String? placeholder, String? label, String? helperText, String? errorText, RTextFieldVariant variant = RTextFieldVariant.filled, int? maxLines = 1, int? minLines, RTextFieldOverlayVisibilityMode clearButtonMode = RTextFieldOverlayVisibilityMode.never, RTextFieldOverlayVisibilityMode prefixMode = RTextFieldOverlayVisibilityMode.always, RTextFieldOverlayVisibilityMode suffixMode = RTextFieldOverlayVisibilityMode.always})
const

Properties

clearButtonMode RTextFieldOverlayVisibilityMode
Visibility mode for the clear button.
final
errorText String?
Error text (shown below field, replaces helper when set).
final
hashCode int
The hash code for this object.
no setterinherited
helperText String?
Helper text (shown below field).
final
isMultiline bool
Whether this is a multiline field.
no setter
label String?
Label text (shown above or floating).
final
maxLines int?
Maximum number of lines.
final
minLines int?
Minimum number of lines.
final
placeholder String?
Placeholder text shown when field is empty.
final
prefixMode RTextFieldOverlayVisibilityMode
Visibility mode for the prefix widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixMode RTextFieldOverlayVisibilityMode
Visibility mode for the suffix widget.
final
variant RTextFieldVariant
Visual variant of the field.
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