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

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

View File

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