updatePendingStatus method

void updatePendingStatus(
  1. LocationNotificationModel notification
)

Implementation

void updatePendingStatus(LocationNotificationModel notification) {
  for (var i = 0; i < allLocationNotifications.length; i++) {
    if ((allLocationNotifications[i].key!.contains(notification.key!))) {
      allLocationNotifications[i].haveResponded = true;
      break;
    }
  }
  notifyListeners();
}