W3cubDocs

/Dart 2

LinkedHashSet<E>.of constructor

LinkedHashSet<E>.of(Iterable<E> elements)

Create a linked hash set from elements.

Creates a linked hash set as by new LinkedHashSet<E>() and adds each element of elements to this set in the order they are iterated.

Implementation

factory LinkedHashSet.of(Iterable<E> elements) =>
    new LinkedHashSet<E>()..addAll(elements);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-collection/LinkedHashSet/LinkedHashSet.of.html