partialCompare abstract method

double? partialCompare(
  1. T x,
  2. T y
)

Result of comparing x with y.

Returns null if operands are not comparable. If operands are comparable, returns a double whose sign is:

  • negative iff x < y
  • zero iff x == y
  • positive iff x > y

Implementation

double? partialCompare(T x, T y);