implemented get hashcode and cleanup

This commit is contained in:
SomnusVeritas
2023-11-05 15:01:24 +01:00
parent ebe2cb8970
commit 1580ec723a
3 changed files with 13 additions and 3 deletions

View File

@@ -16,4 +16,9 @@ class Ingredient {
Ingredient i = other as Ingredient;
return title == i.title;
}
@override
int get hashCode {
return Object.hash(title, null);
}
}

View File

@@ -14,4 +14,9 @@ class IngredientListEntry {
final i = other as IngredientListEntry;
return ingredient == i.ingredient;
}
@override
int get hashCode {
return Object.hash(ingredient, null);
}
}