compare static method

int compare(
  1. bool x,
  2. bool y
)

Compares two boolean values

Implementation

static int compare(final bool x, final bool y) {
  if (x == y) {
    return 0;
  }
  return x ? 1 : -1;
}