isSameWeekWith method

bool isSameWeekWith(
  1. Hora other, {
  2. WeekConfig config = WeekConfig.iso,
})

Checks if this is in the same week as another date.

Implementation

bool isSameWeekWith(Hora other, {WeekConfig config = WeekConfig.iso}) =>
    _weekYear(config) == other._weekYear(config) &&
    _weekOfYear(config) == other._weekOfYear(config);