setting method
DateTime
setting(
{ - int? year,
- int? month,
- int? day,
- int? hour,
- int? minute,
- int? second,
- int? millisecond,
- int? microsecond,
- TimeOfDay? timeOfDay,
- DateTime? date,
- DateTime? time,
})
Implementation
DateTime setting({
int? year,
int? month,
int? day,
int? hour,
int? minute,
int? second,
int? millisecond,
int? microsecond,
TimeOfDay? timeOfDay,
DateTime? date,
DateTime? time,
}) =>
DateTime(
year ?? date?.year ?? this.year,
month ?? date?.month ?? this.month,
day ?? date?.day ?? this.day,
hour ?? time?.hour ?? timeOfDay?.hour ?? this.hour,
minute ?? time?.minute ?? timeOfDay?.minute ?? this.minute,
second ?? time?.second ?? this.second,
millisecond ?? time?.millisecond ?? this.millisecond,
microsecond ?? time?.microsecond ?? this.microsecond,
);