Audit hashCode overrides outside of packages/flutter (#85370)

This commit is contained in:
Dan Field
2021-06-26 17:36:04 -07:00
committed by GitHub
parent a85811ac6c
commit 9846fa5145
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) {