setting method

DateTime setting({
  1. int? year,
  2. int? month,
  3. int? day,
  4. int? hour,
  5. int? minute,
  6. int? second,
  7. int? millisecond,
  8. int? microsecond,
  9. TimeOfDay? timeOfDay,
  10. DateTime? date,
  11. 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,
    );