DesignFieldParts class

What a DesignField's builder lays out.

Annotations

Constructors

DesignFieldParts({required Widget control, required String? labelText, required String? helperText, required String? errorText, required Widget? label, required Widget? helper, required Widget? error, required bool required, required bool enabled, required bool focused})
The parts of a field; DesignField makes these.
const

Properties

control → Widget
The control, carrying the field's name, hint and validity for a screen reader.
final
enabled → bool
Whether the control takes input.
final
error → Widget?
The error as text. The control's hint carries it; it is announced as it appears (a live region where the platform takes no announcements). Draw this one rather than your own from errorText, or the announcement is lost.
final
errorText → String?
The error's words, or null while the value is fine.
final
focused → bool
Whether anything in the field has focus.
final
hasError → bool
Whether the field shows an error.
no setter
hashCode → int
The hash code for this object.
no setterinherited
helper → Widget?
The help as text a screen reader skips.
final
helperText → String?
The help's words.
final
label → Widget?
The label as text a screen reader skips (the control already says it), and a tap on it focuses the control. Style it with a DefaultTextStyle; a look that draws its own label from labelText wraps it in ExcludeSemantics.
final
labelText → String?
The label's words.
final
required → bool
Whether the field must be filled (draw its mark).
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

Operators

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