compareListings function
bool
compareListings(- _ListingListDataObservable a,
- _ListingListDataObservable b
)
Implementation
bool compareListings(
_ListingListDataObservable a, _ListingListDataObservable b) {
return a.id == b.id &&
a.name == b.name &&
a.hideLocation == b.hideLocation &&
a.businessImage == b.businessImage &&
a.address == b.address &&
a.city == b.city &&
a.state == b.state &&
a.country == b.country &&
a.latitude == b.latitude &&
a.longitude == b.longitude &&
a.postalCode == b.postalCode &&
a.description == b.description &&
a.priceRange == b.priceRange &&
compareLists(a.features, b.features) &&
// a.features == b.features &&
a.contactNumber == b.contactNumber &&
a.email == b.email &&
a.webpageUrl == b.webpageUrl &&
a.socialMediaUrl == b.socialMediaUrl &&
a.userType == b.userType &&
a.status == b.status &&
a.distance == b.distance &&
a.isOpen == b.isOpen &&
a.isFavourite == b.isFavourite &&
a.isFeatured == b.isFeatured &&
a.discount == b.discount &&
a.totalRating == b.totalRating &&
a.avgRating == b.avgRating &&
a.totalCount == b.totalCount &&
a.canClaimed == b.canClaimed &&
compareLists(a.rating, b.rating) &&
// a.rating == b.rating &&
compareLists(a.businessTypeList, b.businessTypeList) &&
// a.businessTypeList == b.businessTypeList &&
a.workingHour == b.workingHour &&
a.musicTypeDisplay == b.musicTypeDisplay &&
compareLists(a.musicTypeList, b.musicTypeList) &&
// a.musicTypeList == b.musicTypeList &&
compareLists(a.tags, b.tags) &&
// a.tags == b.tags &&
compareLists(a.galleryAttachmentArray, b.galleryAttachmentArray);
// a.galleryAttachmentArray == b.galleryAttachmentArray;
}