isPast method

bool isPast()

Returns true if the DateTime object represents a date in the past.

Implementation

bool isPast() {
  return this.isBefore(DateTime.now());
}