weekSpansMonths method

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

Whether this week spans two calendar months.

Implementation

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