Set<E>.identity constructor Null safety

Set<E>.identity()

Creates an empty identity Set.

The created Set is a LinkedHashSet that uses identity as equality relation.

The set is equivalent to one created by new LinkedHashSet<E>.identity().

Implementation

factory Set.identity() = LinkedHashSet<E>.identity;