weekYear method

int weekYear({
  1. WeekConfig config = WeekConfig.iso,
})

The year to which the current week belongs.

This may differ from the calendar year near year boundaries.

Implementation

int weekYear({WeekConfig config = WeekConfig.iso}) {
  _validateWeekConfig(config);
  return _weekYear(config);
}