isSameMomentAs method

bool isSameMomentAs(
  1. OffsetTime other
)

Returns true if this occurs at the same moment as other.

final foo = OffsetTime(Offset(4), 12); // 12:00+04:00
final bar = OffsetTime(Offset(0), 8);  // 08:00Z

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

Implementation

bool isSameMomentAs(OffsetTime other) => _instant == other._instant;