partialCompare method

  1. @override
double partialCompare(
  1. T x,
  2. T y
)
override

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

@override
double partialCompare(T x, T y) => compare(x, y).toDouble();