year method
Gets or sets the year of this Day.
When setting a new year, it will return a new Day instance with the new year.
Implementation
dynamic year([int? year]) {
if (year == null) {
return _values[Unit.y];
} else {
return _cloneAndSetSingleValue(Unit.y, year);
}
}