Set<T>.from constructor

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

Creates a Set containing the elements of the given iterable.

Implementation

Set.from(Iterable<T> elements) : _container = LinkedHashSet<T>.from(elements);