ControlValueAccessor<ModelDataType, ViewDataType> class Null safety

Defines an interface that acts as a bridge between FormControl and a reactive native widget.

Implementers

Constructors

ControlValueAccessor()

Properties

control FormControl<ModelDataType>?
Gets the control bind to this value accessor.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispose() → void
Disposes the value accessors.
modelToViewValue(ModelDataType? modelValue) → ViewDataType?
Returns the value that must be supplied to the UI widget. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerControl(FormControl<ModelDataType> control, {ChangeFunction<ViewDataType>? onChange}) → void
Registers a the control with the value accessor. [...]
toString() String
A string representation of this object. [...]
inherited
updateModel(ViewDataType? viewValue) → void
Updates the control with the provided value. [...]
viewToModelValue(ViewDataType? viewValue) → ModelDataType?
Returns the value that must be supplied to the control. [...]

Operators

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