DateTimeValueAccessor class

Represents a control value accessor that convert between data types DateTime and String.

Inheritance

Constructors

DateTimeValueAccessor({DateFormat? dateTimeFormat})

Properties

control FormControl<DateTime>?
Gets the control bind to this value accessor.
no setterinherited
dateTimeFormat → DateFormat
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(DateTime? modelValue) String
Returns the value that must be supplied to the UI widget.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerControl(FormControl<DateTime> control, {ChangeFunction<String>? onChange}) → void
Registers a the control with the value accessor.
inherited
toString() String
A string representation of this object.
inherited
updateModel(String? viewValue) → void
Updates the control with the provided value.
inherited
viewToModelValue(String? viewValue) DateTime?
Returns the value that must be supplied to the control.
override

Operators

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