updatePendingStatus method

void updatePendingStatus(
  1. EventNotificationModel notificationModel
)

updates haveResponded property for notificationModel.

Implementation

void updatePendingStatus(EventNotificationModel notificationModel) async {
  for (var i = 0; i < allEventNotifications.length; i++) {
    if (allEventNotifications[i]
        .eventNotificationModel!
        .key!
        .contains(notificationModel.key!)) {
      allEventNotifications[i].haveResponded = true;
    }
  }
}