setDate method
Sets the complete date.
Implementation
void setDate(DateTime newDate) {
year.value = newDate.year;
month.value = newDate.month;
final daysInMonth = DateTime(newDate.year, newDate.month + 1, 0).day;
day.value = newDate.day.clamp(1, daysInMonth);
}