isPast property

bool get isPast

Returns true if the date is in the past.

Example:

DateTime(2020, 1, 1).isPast; // true

Implementation

bool get isPast => isBefore(DateTime.now());