month method

dynamic month([
  1. int? month
])

Gets or sets the month of this Day.

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

Implementation

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