modelToViewValue method

  1. @override
String? modelToViewValue(
  1. DateTimeRange? modelValue
)

Returns the value that must be supplied to the UI widget.

Converts value from control data type to UI data type.

Implementation

@override
String? modelToViewValue(DateTimeRange? modelValue) {
  return modelValue == null
      ? ''
      : '${dateTimeFormat.format(modelValue.start)}$delimiter${dateTimeFormat.format(modelValue.end)}';
}