equals method

bool equals(
  1. OffsetDate other
)

Compares two OffsetDate values for equality. This requires that the date values be the same (in the same calendar) and the offsets.

  • other: The value to compare this offset date with.

Returns: True if the given value is another offset date equal to this one; false otherwise.

Implementation

bool equals(OffsetDate other) => calendarDate == other.calendarDate && offset == other.offset;