operator ^ method
Bit-wise exclusive-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 one,
but not both, of this
and other
If the operands have the same sign, the result is non-negative, otherwise the result is negative.
Returns ux
Implementation
@override
ux 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}');
}
}