const union = Color.Red.or(Color.Blue);
union.hasFlag(Color.Red) // true
union.hasFlag(Color.Blue) // true
union.hasFlag(Color.Green) // false
true
if other
is present in this
, false
otherwise
Creates a new BitFlagValue representing the intersection of the operands
const union = Color.Red.or(Color.Blue).intersect([Color.Red, Color.Green]);
union.hasFlag(Color.Red) // true
union.hasFlag(Color.Blue) // false
union.hasFlag(Color.Green) // false
Creates a new BitFlagValue representing the union of the operands
const union = Color.Red.or(Color.Blue);
union.hasFlag(Color.Red) // true
union.hasFlag(Color.Blue) // true
union.hasFlag(Color.Green) // false
Creates a new BitFlagValue representing the union of the operands
const union = Color.Red.union([Color.Blue, Color.Green]);
union.hasFlag(Color.Red) // true
union.hasFlag(Color.Blue) // true
union.hasFlag(Color.Green) // true
union.hasFlag(Color.Purple) // false
Readonly
valueThe backing bitflag value
Generated using TypeDoc
Represents a bitflag enum member