weekOfYear method

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

The week number within the year (1–53).

Uses config to determine week start day and first-week rules. Defaults to ISO 8601.

Implementation

int weekOfYear({WeekConfig config = WeekConfig.iso}) {
  _validateWeekConfig(config);
  return _weekOfYear(config);
}