isSameLocalWeekAs method

bool isSameLocalWeekAs(
  1. DateTime other
)

Returns whether this and other is in same local week. Local week is determined by localization.weekStart, defaults to DateTime.monday

Assumes both this and other is in local timezone.

Implementation

bool isSameLocalWeekAs(DateTime other) =>
    forcedSuperType.isSameLocalWeekAs(other, localization.weekStart);