hour method

dynamic hour([
  1. int? hour
])

Gets or sets the hour of this Day.

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

Implementation

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