weekSpansYears method

bool weekSpansYears({
  1. WeekConfig config = WeekConfig.iso,
})

Whether this week spans two calendar years.

Implementation

bool weekSpansYears({WeekConfig config = WeekConfig.iso}) {
  _validateWeekConfig(config);
  final s = startOfWeek(config: config);
  final e = endOfWeek(config: config);
  return s.year != e.year;
}