DateTime constructor
DateTime({})
Implementation
factory DateTime({
$core.int? year,
$core.int? month,
$core.int? day,
$core.int? hours,
$core.int? minutes,
$core.int? seconds,
$core.int? nanos,
$10.Duration? utcOffset,
TimeZone? timeZone,
}) {
final $result = create();
if (year != null) {
$result.year = year;
}
if (month != null) {
$result.month = month;
}
if (day != null) {
$result.day = day;
}
if (hours != null) {
$result.hours = hours;
}
if (minutes != null) {
$result.minutes = minutes;
}
if (seconds != null) {
$result.seconds = seconds;
}
if (nanos != null) {
$result.nanos = nanos;
}
if (utcOffset != null) {
$result.utcOffset = utcOffset;
}
if (timeZone != null) {
$result.timeZone = timeZone;
}
return $result;
}