compareEvents function

bool compareEvents(
  1. _EventListDataObservable a,
  2. _EventListDataObservable b
)

Implementation

bool compareEvents(_EventListDataObservable a, _EventListDataObservable b) {
  return a.id == b.id &&
      a.userId == b.userId &&
      a.name == b.name &&
      a.eventImage == b.eventImage &&
      a.startDate == b.startDate &&
      a.endDate == b.endDate &&
      a.startTime == b.startTime &&
      a.endTime == b.endTime &&
      a.bookingLimit == b.bookingLimit &&
      a.leftBookingCount == b.leftBookingCount &&
      a.price == b.price &&
      a.discount == b.discount &&
      a.discountType == b.discountType &&
      a.address == b.address &&
      a.city == b.city &&
      a.latitude == b.latitude &&
      a.longitude == b.longitude &&
      a.postalCode == b.postalCode &&
      a.status == b.status &&
      a.isFeatured == b.isFeatured &&
      a.statusText == b.statusText &&
      a.isFavourite == b.isFavourite &&
      a.totalRating == b.totalRating &&
      a.musicTypeId == b.musicTypeId &&
      compareLists(a.musicType, b.musicType) &&
      a.isToday == b.isToday &&
      a.isTomorrow == b.isTomorrow &&
      a.updatedAt == b.updatedAt;
}