isEventSharedWithMe method

bool isEventSharedWithMe(
  1. EventNotificationModel eventData
)

if eventData is already present in allEventNotifications.

Implementation

bool isEventSharedWithMe(EventNotificationModel eventData) {
  for (var i = 0; i < allEventNotifications.length; i++) {
    if (allEventNotifications[i]
        .eventNotificationModel!
        .key!
        .contains(eventData.key!)) {
      return true;
    }
  }
  return false;
}