isAfter method
Returns true if this date is after other
.
Example:
final date1 = LocalDate(2024, 6, 27);
final date2 = LocalDate(2024, 6, 28);
print(date1.isAfter(date2)); // false
print(date2.isAfter(date1)); // true
Implementation
bool isAfter(LocalDate other) => compareTo(other).isGreaterThan(0);