equals method

bool equals(
  1. OffsetDateTime other
)

Compares two OffsetDateTime values for equality. This requires that the local date/time values be the same (in the same calendar) and the offsets.

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

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

Implementation

bool equals(OffsetDateTime other) =>
    localDateTime.equals(other.localDateTime) && offset.equals(other.offset);