equals method

bool equals(
  1. ZonedDateTime other
)

Indicates whether the current object is equal to another object of the same type.

true if the current object is equal to the other parameter; otherwise, false.

  • other: An object to compare with this object.

Returns: True if the specified value is the same instant in the same time zone; false otherwise.

Implementation

bool equals(ZonedDateTime other) => _offsetDateTime == other._offsetDateTime && zone == other.zone;