Date constructor

Date({
  1. int? year,
  2. int? month,
  3. int? day,
})

Implementation

factory Date({
  $core.int? year,
  $core.int? month,
  $core.int? day,
}) {
  final $result = create();
  if (year != null) {
    $result.year = year;
  }
  if (month != null) {
    $result.month = month;
  }
  if (day != null) {
    $result.day = day;
  }
  return $result;
}