isBefore method

bool isBefore(
  1. Instant other
)

Returns true if this occurs before other.

The comparison is independent of the time zone.

Implementation

bool isBefore(Instant other) => sinceEpoch < other.sinceEpoch;