combineFlags function

int combineFlags(
  1. int current,
  2. Flags flag
)

Combines a Flags enum value with an int (result of | operator) and returns the combined int value. Used for setting flags on Note fields.

Implementation

int combineFlags(int current, Flags flag) => current | flag.value;