dart / 2 / dart-core / set / set.html

Set<E> constructor

Set<E>()

Creates an empty Set.

The created Set is a plain LinkedHashSet. As such, it considers elements that are equal (using operator ==) to be indistinguishable, and requires them to have a compatible Object.hashCode implementation.

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

Implementation

factory Set() = LinkedHashSet<E>;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/Set/Set.html