fromCoreValueBitMask<T extends Enum> function

  1. @visibleForTesting
Set<T> fromCoreValueBitMask<T extends Enum>(
  1. List<T> values,
  2. int coreValue
)

Implementation

@visibleForTesting
Set<T> fromCoreValueBitMask<T extends Enum>(List<T> values, int coreValue) {
  return values.where((index) => (coreValue & (1 << index.index)) != 0).toSet();
}