complete migration of flutter repo to Object.hash* (#99505)

This commit is contained in:
Viren Khatri
2022-03-05 02:26:21 +05:30
committed by GitHub
parent e047fe7fc7
commit 671aa9e95e
18 changed files with 25 additions and 28 deletions

View File

@@ -275,7 +275,7 @@ class BoardPoint {
}
@override
int get hashCode => hashValues(q, r);
int get hashCode => Object.hash(q, r);
BoardPoint copyWithColor(Color nextColor) => BoardPoint(q, r, color: nextColor);

View File

@@ -37,7 +37,7 @@ class ComponentDemoTabData {
}
@override
int get hashCode => hashValues(tabName, description, documentationUrl);
int get hashCode => Object.hash(tabName, description, documentationUrl);
}
class TabbedComponentDemoScaffold extends StatelessWidget {

View File

@@ -29,7 +29,7 @@ class GalleryDemoCategory {
}
@override
int get hashCode => hashValues(name, icon);
int get hashCode => Object.hash(name, icon);
@override
String toString() {

View File

@@ -71,7 +71,7 @@ class GalleryOptions {
}
@override
int get hashCode => hashValues(
int get hashCode => Object.hash(
themeMode,
textScaleFactor,
visualDensity,

View File

@@ -21,7 +21,7 @@ class GalleryTextScaleValue {
}
@override
int get hashCode => hashValues(scale, label);
int get hashCode => Object.hash(scale, label);
@override
String toString() {
@@ -55,7 +55,7 @@ class GalleryVisualDensityValue {
}
@override
int get hashCode => hashValues(visualDensity, label);
int get hashCode => Object.hash(visualDensity, label);
@override
String toString() {