HashSet<T>.from constructor

HashSet<T>.from(
  1. Iterable<T> elements
)

Creates a HashSet containing the elements of the given iterable.

Implementation

HashSet.from(Iterable<T> elements)
  : _container = collection.HashSet<T>.from(elements);