FieldBindingController<T> class abstract

Base class for field binding controllers that manage individual field bindings.

This class provides the foundation for binding individual form fields to their corresponding data structure fields.

Inheritance
Implementers
Available extensions

Constructors

FieldBindingController(FieldBindingParent parent, FlutterWidgetBinder binder, FieldBindingContext<T> bindingContext)
Creates a new FieldBindingController with the given parent, binder, and context.

Properties

binder FlutterWidgetBinder
The widget binder that handles the conversion between data and widgets.
final
bindingContext FieldBindingContext<T>
The binding context containing field metadata and validation rules.
final
errorListenable ValueNotifier<AnnotationResult>
Streaming error notifier for this field.
getter/setter pair
fieldName String

Available on FieldBindingController, provided by the FieldBindingControllerExtension extension

Gets the name of the field this controller is bound to.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
hasStateError bool
Indicates whether this field has any state errors.
no setter
initialValue ↔ T?
The initial value of this field, will be applied post construct and may change over the lifetime of the controller. Do not manually set this here, use the StructureBindingController to set or change initial values.
getter/setter pair
parent FieldBindingParent
The parent StructureBindingController that manages this field.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validationTrigger ValidationTrigger
The validation trigger that determines when validation occurs.
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Disposes of any resources held by this controller.
override
focus() → void
Requests focus for this field.
getValue() → T?
Gets the current value of this field.
handleErrors(AnnotationResult result) → void
Handles validation errors for this field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
override
performValidation([ValidationTrigger? trigger]) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
Resets this field to its initial state.
setValue(T? value) → void
Sets the value for this field.
toString() String
A string representation of this object.
inherited

Operators

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