compare method

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

Compares two values and returns an int indicating their order.

Implementation

@override
int compare(bool x, bool y) => (x ? 1 : 0) - (y ? 1 : 0);