flag property

int flag

Returns the int with the active bits of the Iterable of EnumFlag

Example:

enum EnumX with EnumFlag {
  one,
  two,
}

...

print([EnumX.one, EnumX.two].flag); // 3

Implementation

int get flag => fold(0, (int value, EnumFlag flag) => value | flag.value);