equals method
Compares two LocalDate values for equality. This requires that the dates be the same, within the same calendar.
other
: The value to compare this date with.
Returns: True if the given value is another local date equal to this one; false otherwise.
Implementation
bool equals(LocalDate other) => _yearMonthDayCalendar == other._yearMonthDayCalendar;