EnumSet<T extends Enum>.copy constructor

EnumSet<T extends Enum>.copy(
  1. EnumSet<T> other
)

Creates a new copy of the current EnumSet and returns it. The newly created set holds exactly the same data as other.

Implementation

factory EnumSet.copy(EnumSet<T> other) =>
    EnumSet<T>.of(other._enumConstants, other);