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

This reverts commit 9846fa5145.
This commit is contained in:
Ren You
2021-06-28 09:55:31 -07:00
committed by GitHub
parent d586873275
commit 2be0d57fa2
18 changed files with 68 additions and 30 deletions

View File

@@ -128,7 +128,9 @@ class LocaleInfo implements Comparable<LocaleInfo> {
}
@override
int get hashCode => originalString.hashCode;
int get hashCode {
return originalString.hashCode;
}
@override
String toString() {

View File

@@ -274,7 +274,7 @@ class FrameData {
}
@override
int get hashCode => Object.hash(size, Object.hashAll(paths));
int get hashCode => size.hashCode ^ paths.hashCode;
@override
String toString() {
@@ -328,7 +328,7 @@ class SvgPath {
}
@override
int get hashCode => Object.hash(id, Object.hashAll(commands), opacity);
int get hashCode => id.hashCode ^ commands.hashCode ^ opacity.hashCode;
@override
String toString() {
@@ -377,7 +377,7 @@ class SvgPathCommand {
}
@override
int get hashCode => Object.hash(type, Object.hashAll(points));
int get hashCode => type.hashCode ^ points.hashCode;
@override
String toString() {