Returns true if the two values are equal according to the compare function.
@override bool equals(double x, double y) => compare(x, y) == 0;