mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-26 21:34:57 +00:00
added product comparison
This commit is contained in:
@ -66,4 +66,25 @@ class ProductModel {
|
|||||||
String toString() {
|
String toString() {
|
||||||
return 'ProductModel(uuid: $uuid, catName: $catName, prodId: $prodId, prodType: $prodType, name: $name, icon: $icon)';
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user