Revert "Revert "Audit hashCode overrides outside of packages/flutter (#85370)" (#85451)" (#85567)

This reverts commit 2be0d57fa2.
This commit is contained in:
Dan Field
2021-06-30 09:46:54 -07:00
committed by GitHub
parent ae2442c8c6
commit e36e62e9a6
18 changed files with 30 additions and 68 deletions

View File

@@ -183,8 +183,7 @@ class Rect {
final double bottom;
@override
int get hashCode =>
top.hashCode ^ left.hashCode ^ right.hashCode ^ bottom.hashCode;
int get hashCode => Object.hash(top, left, right, bottom);
@override
bool operator ==(Object other) {
@@ -216,7 +215,7 @@ class Size {
final double height;
@override
int get hashCode => width.hashCode ^ height.hashCode;
int get hashCode => Object.hash(width, height);
@override
bool operator ==(Object other) {