LinkedHashSet<E>.identity constructor Null safety

LinkedHashSet<E>.identity()

Creates an insertion-ordered identity-based set.

Effectively shorthand for:

LinkedHashSet<E>(equals: identical, hashCode: identityHashCode)

Implementation

external factory LinkedHashSet.identity();