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() {

View File

@@ -3,7 +3,6 @@
// found in the LICENSE file.
import 'dart:html' as html;
import 'dart:ui';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
@@ -33,7 +32,7 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
packageScheme: 'package',
package: 'packages',
packagePath: 'web_integration/stack_trace.dart',
line: 120,
line: 119,
column: 3,
className: '<unknown>',
method: 'baz',
@@ -44,7 +43,7 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
packageScheme: 'package',
package: 'packages',
packagePath: 'web_integration/stack_trace.dart',
line: 115,
line: 114,
column: 3,
className: '<unknown>',
method: 'bar',
@@ -55,7 +54,7 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
packageScheme: 'package',
package: 'packages',
packagePath: 'web_integration/stack_trace.dart',
line: 110,
line: 109,
column: 3,
className: '<unknown>',
method: 'foo',
@@ -154,7 +153,7 @@ class StackFrameEquality implements Equality<StackFrame> {
// TODO(dnfield): This ignore shouldn't be necessary, see https://github.com/dart-lang/sdk/issues/46477
@override
int hash(StackFrame e) { // ignore: avoid_renaming_method_parameters
return hashValues(e.number, e.packageScheme, e.package, e.packagePath, e.line, e.column, e.className, e.method);
return Object.hash(e.number, e.packageScheme, e.package, e.packagePath, e.line, e.column, e.className, e.method);
}
@override