LinkedHashSet< E>.of конструктор
-
Iterable<
E> elements
Создать связанное множество хешей из elements.
Создаёт связанное множество хешей, добавляя каждый элемент elements в этот набор в порядке их итерации. Пример:
final baseSet = <int>{1, 2, 3};
final setOf = LinkedHashSet<num>.of(baseSet);
print(setOf); // {1, 2, 3} Реализация
factory LinkedHashSet.of(Iterable<E> elements) =>
LinkedHashSet<E>()..addAll(elements);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-collection/LinkedHashSet/LinkedHashSet.of.html