copy method

EnumSet<T> copy()

Copies this set so any modifications made on one don't affect the other.

Implementation

EnumSet<T> copy() => EnumSet._(flags, bits);