setSingle method
Implementation
void setSingle(DateType dateType, var value) {
switch (dateType) {
case DateType.Year:
this.year = value;
break;
case DateType.Month:
this.month = value;
break;
case DateType.Day:
this.day = value;
break;
case DateType.Hour:
this.hour = value;
break;
case DateType.Minute:
this.minute = value;
break;
case DateType.Second:
this.second = value;
break;
}
}