isPastNotification method

dynamic isPastNotification(
  1. LocationNotificationModel _locationNotificationModel
)

Checks if a location notification is in the past

Implementation

isPastNotification(LocationNotificationModel _locationNotificationModel) {
  if ((_locationNotificationModel.to != null) &&
      (_locationNotificationModel.to!.isBefore(DateTime.now()))) {
    return true;
  }
  return false;
}