isAfter method

bool isAfter(
  1. ZonedDateTime other
)

Checks if this date-time is after another.

Example:

final now = ZonedDateTime.now();
final past = now.minusHours(1);

print(now.isAfter(past)); // true
print(past.isAfter(now)); // false

Implementation

bool isAfter(ZonedDateTime other) => compareTo(other) > 0;