Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

migrate from ui.hash* to Object.hash* #654

Merged
merged 3 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/codeviewer/code_segments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46425,7 +46425,9 @@ class CodeSegments {
TextSpan(style: codeStyle.keywordStyle, text: 'get'),
TextSpan(style: codeStyle.baseStyle, text: ' hashCode '),
TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
TextSpan(style: codeStyle.baseStyle, text: ' hashValues'),
TextSpan(style: codeStyle.baseStyle, text: ' Object'),
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
TextSpan(style: codeStyle.baseStyle, text: 'hash'),
TextSpan(style: codeStyle.punctuationStyle, text: '('),
TextSpan(style: codeStyle.baseStyle, text: 'q'),
TextSpan(style: codeStyle.punctuationStyle, text: ','),
Expand Down
2 changes: 1 addition & 1 deletion lib/data/gallery_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class GalleryOptions {
isTestMode == other.isTestMode;

@override
int get hashCode => hashValues(
int get hashCode => Object.hash(
themeMode,
_textScaleFactor,
customTextDirection,
Expand Down
2 changes: 1 addition & 1 deletion lib/demos/reference/transformations_demo_board.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,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);
Expand Down