EqualitySet<E> constructor Null safety

EqualitySet<E>(
  1. Equality<E> equality
)

Creates a set with equality based on equality.

Implementation

EqualitySet(Equality<E> equality)
    : super(LinkedHashSet(
          equals: equality.equals,
          hashCode: equality.hash,
          isValidKey: equality.isValidKey));