compareTo method

  1. @override
int compareTo(
  1. CssValue other
)
override

Returns the result of comparing this value's number to that of other.

Throws an error if the unit of this value and other do not match.

Implementation

@override
int compareTo(CssValue other) {
  _checkMatchingUnits(other);
  return number.compareTo(other.number);
}