isAfter method
Returns true if this is after other
.
// 2023-04-20T12:00+08:00[Asia/Singapore]
final singapore = ZonedDateTime('Asia/Singapore', 2023, 4, 20, 12);
// 2023-04-20T12:00+01:00[Europe/London]
final london = ZonedDateTime('Europe/London', 2023, 4, 20, 12);
print(london.isAfter(singapore)); // true
Implementation
bool isAfter(ZonedDateTime other) => epochMicroseconds > other.epochMicroseconds;