updateDate method
Updates a DateFieldState with a given value
.
fieldName
The name of the date field to update.value
The new value for the date field.
Implementation
void updateDate(String fieldName, DateTime? value) {
update<DateFieldState, DateTime?>(fieldName, value);
}