describeIdentity function

String describeIdentity (Object object)

Returns a summary of the runtime type and hash code of object.

See also:

  • Object.hashCode, a value used when placing an object in a Map or other similar data structure, and which is also used in debug output to distinguish instances of the same class (hash collisions are possible, but rare enough that its use in debug output is useful).
  • Object.runtimeType, the Type of an object.


String describeIdentity(Object object) => '${object.runtimeType}#${shortHash(object)}';