weekYear method
Returns the week year based on the configured week start.
The week year is the year that the current week belongs to. This may differ from the calendar year at year boundaries.
Implementation
int weekYear([WeekYearConfig config = WeekYearConfig.iso]) {
final thursday = _getWeekThursday(config);
return thursday.year;
}