diff --git a/lib/pages/spaces_management/all_spaces/model/product_model.dart b/lib/pages/spaces_management/all_spaces/model/product_model.dart index 557c106b..a4ebd550 100644 --- a/lib/pages/spaces_management/all_spaces/model/product_model.dart +++ b/lib/pages/spaces_management/all_spaces/model/product_model.dart @@ -66,4 +66,25 @@ class ProductModel { String toString() { return 'ProductModel(uuid: $uuid, catName: $catName, prodId: $prodId, prodType: $prodType, name: $name, icon: $icon)'; } + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ProductModel && + runtimeType == other.runtimeType && + uuid == other.uuid && + catName == other.catName && + prodId == other.prodId && + prodType == other.prodType && + name == other.name && + icon == other.icon; + + @override + int get hashCode => + uuid.hashCode ^ + catName.hashCode ^ + prodId.hashCode ^ + prodType.hashCode ^ + name.hashCode ^ + icon.hashCode; }