HashSet.identity()

Creates an unordered identity-based set.

Effectively a shorthand for:

new HashSet<E>(equals: identical,
               hashCode: identityHashCodeOf)

Source

external factory HashSet.identity();