RTextFieldState class final

TextField interaction state.

Derived from component's internal state, exposed as simple flags for renderer convenience.

Annotations

Constructors

RTextFieldState({bool isFocused = false, bool isHovered = false, bool isDisabled = false, bool isReadOnly = false, bool hasText = false, bool isError = false, bool isObscured = false})
const
RTextFieldState.fromWidgetStates(Set<WidgetState> states, {bool hasText = false, bool isError = false, bool isObscured = false, bool isReadOnly = false})
Create state from Flutter's WidgetState set + text field specifics.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasText → bool
Whether the field contains text.
final
isDisabled → bool
Whether the field is disabled.
final
isError → bool
Whether the field has an error.
final
isFocused → bool
Whether the field has keyboard focus.
final
isHovered → bool
Whether the pointer is hovering over the field.
final
isObscured → bool
Whether the text is obscured (password mode).
final
isReadOnly → bool
Whether the field is read-only.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toWidgetStates() → Set<WidgetState>
Convert to Flutter's WidgetState set.

Operators

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