W3cubDocs

/Dart 2

identityHashCode function

int identityHashCode (Object object)

Returns the identity hash code of object.

Returns the same value as object.hashCode if object has not overridden Object.hashCode. Returns the value that Object.hashCode would return on this object, even if hashCode has been overridden.

This hash code is compatible with identical.

Implementation

@pragma("vm:entry-point")
external int identityHashCode(Object object);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/identityHashCode.html