operator | method
Bit-wise or operator.
Treating both this
and other
as sufficiently large two's component
integers, the result is a number with the bits set that are set in either
of this
and other
If both operands are non-negative, the result is non-negative, otherwise the result is negative.
Returns ix
Implementation
@override
ix operator |(dynamic other) {
if (other is integer) {
return ofSameBit(value | other.value);
} else if (other is int) {
return ofSameBit(value | other);
} else {
throw Exception('Invalid type for operand: ${other.runtimeType}');
}
}