implemented get hashcode and cleanup
This commit is contained in:
@@ -16,4 +16,9 @@ class Ingredient {
|
||||
Ingredient i = other as Ingredient;
|
||||
return title == i.title;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(title, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user