isPastNotification method

dynamic isPastNotification(
  1. EventNotificationModel eventNotificationModel
)

returns true if eventNotificationModel is a past event

Implementation

isPastNotification(EventNotificationModel eventNotificationModel) {
  if (eventNotificationModel.event!.endTime!.isBefore(DateTime.now())) {
    return true;
  }

  return false;
}