localeWeek property

int get localeWeek

Returns the week number using the locale's week configuration.

Implementation

int get localeWeek {
  final config = WeekYearConfig(
    weekStart: locale.weekStart,
    yearStart: locale.yearStart,
  );
  return weekOfWeekYear(config);
}