toSet method

Set<T> toSet()

Returns all the elements of this set.

Implementation

Set<T> toSet() => {
  for (final T value in flags.keys)
    if (contains(value)) value
};