operator <= method

bool operator <=(
  1. CssValue other
)

Returns whether this value's number is less than or equal to that of other.

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

Implementation

bool operator <=(CssValue other) {
  _checkMatchingUnits(other);
  return number <= other.number;
}