operator > method
Returns true
if left side is after Right side.
final checkDate = DateTime.now(); // 16-09-2023
checkDate.nextDay > DateTime.now() // true
checkDate > DateTime.now() // false
The comparison is independent of whether the time is in UTC or in the local time zone
Implementation
bool operator >(DateTime otherDate) => isAfter(otherDate);