isAtOrBefore method

bool isAtOrBefore(
  1. DateTime other
)

Returns true if this occurs at or before other, accounting for time zones.

Delegates to DateTime's built-in comparison methods and therefore obeys the same contract.

Implementation

bool isAtOrBefore(DateTime other) =>
    isAtSameMomentAs(other) || isBefore(other);