ConverterValueAccessor<ModelDataType, ViewDataType> class
Constructors
-
ConverterValueAccessor({ModelDataType? encode(ViewDataType?)?, ViewDataType? decode(ModelDataType?)?})
-
Properties
-
control
→ FormControl<ModelDataType>?
-
Gets the control bind to this value accessor.
no setterinherited
-
decode
→ (ViewDataType? Function(ModelDataType?)?)
-
final
-
encode
→ (ModelDataType? Function(ViewDataType?)?)
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose()
→ void
-
Disposes the value accessors.
inherited
-
modelToViewValue(ModelDataType? modelValue)
→ ViewDataType?
-
Returns the value that must be supplied to the UI widget.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
registerControl(FormControl<ModelDataType> control, {ChangeFunction<ViewDataType>? onChange})
→ void
-
Registers a the
control
with the value accessor.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateModel(ViewDataType? viewValue)
→ void
-
Updates the control with the provided value.
inherited
-
viewToModelValue(ViewDataType? viewValue)
→ ModelDataType?
-
Returns the value that must be supplied to the control.