ControlValueAcessor<T> mixin
- Superclass constraints
Properties
- changeNotifier → ChangeNotifier
-
A ChangeNotifier suitable for UI rebuild triggers.
no setter
-
control
→ FormControl<
T> ? -
Optional direct reference to a FormControl.
no setter
- controller → TextEditingController
-
Text controller bound to this control (String-only).
no setter
- disabled → bool
-
Whether the control is disabled.
no setter
- error → String?
-
Current validation error message, if any.
no setter
-
formControl
→ FormControl<
T> -
Resolves the underlying FormControl used by this widget/accessor.
no setter
- formGroup → FormGroup?
-
Optional reference to the parent FormGroup that owns this control.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- name → String?
-
Optional control identifier inside formGroup.
no setter
- readonly → bool
-
Whether the control is readonly.
no setter
- required → bool
-
Whether the control is required.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- touched → bool
-
Whether the user has interacted with the control.
no setter
- valid → bool
-
Whether the control is currently valid.
no setter
-
validator
→ FormFieldValidator<
T> ? -
Validator used by the control (if any).
no setter
- value → T
-
Current control value.
no setter
-
valueNotifier
→ ControlValue<
T> -
Low-level value notifier for the control.
no setter
Methods
-
createElement(
) → Element -
Inflates this configuration to a concrete instance.
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
-
markAsTouched(
{bool notify = true}) → void - Marks the control as "touched".
-
markAsUntouched(
{bool notify = true}) → void - Marks the control as "untouched".
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setReadonly(
bool v, {bool notify = true}) → void - Updates the readonly state.
-
setValue(
T value, {bool notify = true}) → void - Updates the control value.
-
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