isInPast method

bool isInPast()

Check if DateTime is in the past

Implementation

bool isInPast() {
  if (this == null) return false;
  return this!.isBefore(DateTime.now());
}