CarpenterFormField class final

Presentational form row combining a label, optional help text, a caller-owned editor, and an optional error notice. It does not bind or validate the editor automatically.

Inheritance

Constructors

CarpenterFormField({Key? key, required String label, required Widget child, bool required = false, String? error, String? description})
Wraps an editor with form-level labeling and error presentation. The caller runs validation and passes the resulting error; required only adds a marker.
const

Properties

child → Widget
Caller-owned editing widget. Bind its value and callbacks explicitly; the wrapper creates no field controller.
final
description → String?
Optional supporting text between the label and editor. Unlike the basic field shell, this form wrapper can show description and error together.
final
error → String?
Optional error message rendered as a danger notice below the editor. Null removes the notice.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
Visible label above the editor. A required marker is appended when required is true.
final
required → bool
Whether the label includes a required marker. Does not install a validator or reject empty values.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) → Widget
Composes the label, help text, editor, and danger notice in vertical order with theme spacing.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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