xor method

bool? xor(
  1. bool other
)

Performs a logical xor operation between this Boolean and the other one.

Implementation

bool? xor(bool other) {
  if (this == null || other == null) return null;
  return this != other;
}