Skip to content

Commit 83376bf

Browse files
lrhncommit-bot@chromium.org
authored andcommitted
Add Object.hash and Object.hashAll static helper methods.
Fixes #11617. Bug: http://dartbug.com/11617 Change-Id: Id06fb5b3914bee24713427edbd3b9b7e86f86449 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/73360 Commit-Queue: Lasse R.H. Nielsen <[email protected]> Reviewed-by: Nate Bosch <[email protected]> Reviewed-by: Stephen Adams <[email protected]>
1 parent 843bd00 commit 83376bf

File tree

7 files changed

+1274
-261
lines changed

7 files changed

+1274
-261
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
daylight saving changes that are not precisely one hour.
2828
(No change on the Web which uses the JavaScript `Date` object.)
2929

30+
* Adds static methods `hash`, `hashAll` and `hashAllUnordered` to the
31+
`Object` class. These can be used to combine the hash codes of
32+
multiple objects in a consistent way.
33+
3034
#### `dart:ffi`
3135

3236
* Adds the `DynamicLibrary.providesSymbol` function to check whether a symbol

0 commit comments

Comments
 (0)