resetCurrentData method
Implementation
void resetCurrentData(DateTime? value) {
if (value == null) {
_controller.clear();
return;
}
switch (widget.type) {
case BasicInputDateTimeType.date:
_controller.text = value.dateStr;
break;
case BasicInputDateTimeType.time:
_controller.text = value.timeStr;
break;
case BasicInputDateTimeType.dateTime:
_controller.text = value.dateTimeStr;
break;
}
}