partialCompare method
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();