date method

dynamic date([
  1. int? date
])

Gets or sets the date of this Day.

When setting a new date, it will return a new Day instance with the new date.

Implementation

dynamic date([int? date]) {
  if (date == null) {
    return _values[Unit.d];
  } else {
    return _cloneAndSetSingleValue(Unit.d, date);
  }
}