viewToModelValue method

  1. @override
String? viewToModelValue(
  1. DateTime? viewValue
)
override

Returns the value that must be supplied to the control.

Converts value from UI data type to control data type.

Implementation

@override
String? viewToModelValue(DateTime? viewValue) {
  return viewValue?.toIso8601String();
}