setYear method

void setYear(
  1. int year
)

Sets the year, it won't update the internal _time.

You must call finished method to apply all changes. Usually used in chain setting (Cascade).

Implementation

void setYear(int year) => _values[Unit.y] = year;