isBefore method

bool isBefore(
  1. OffsetTime other
)

Returns true if this is before other.

final foo = OffsetTime(Offset(8), 12); // 12:00+08:00
final bar = OffsetTime(Offset(-8), 12); // 12:00-08:00

print(foo.isBefore(bar)); // true

Implementation

bool isBefore(OffsetTime other) => _instant < other._instant;