operator >= method

bool operator >=(
  1. DateTime otherDate
)

Returns true if left side is after Right side or on same date.

final checkDate = DateTime.now();   // 16-09-2023
checkDate.nextDay >= DateTime.now()  // true
checkDate >= DateTime.now()          // true
checkDate.prevDay >= DateTime.now()  // true

The comparison is independent of whether the time is in UTC or in the local time zone

Implementation

bool operator >=(DateTime otherDate) =>
    isAfter(otherDate) || isAtSameMomentAs(otherDate);