isEqual method
Returns true if this date is the same as other
.
Example:
final date1 = LocalDate(2024, 6, 27);
final date2 = LocalDate(2024, 6, 27);
print(date1.isEqual(date2)); // true
print(date2.isEqual(date1)); // true
Implementation
bool isEqual(LocalDate other) => compareTo(other).isEqualTo(0);