CssValue class
A CSS length value, with a number and unit component,
for use in CSS properties such as width
, top
, padding
, etc.
- Implemented types
Properties
Methods
-
compareTo(
CssValue other) → int -
Returns the result of comparing this value's number to that of
other
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the String representation of this value, which can be used as CSS style values.
override
Operators
-
operator %(
num other) → CssValue -
Returns the remainder of dividing this value's number by
other
. -
operator *(
num other) → CssValue -
Returns the result of multiplying this value's number by
other
. -
operator +(
CssValue other) → CssValue -
Returns a new CssValue with the sum of the numbers of this value and
other
. -
operator -(
CssValue other) → CssValue -
Returns a new CssValue with the difference between the numbers of this value and
other
. -
operator /(
num other) → CssValue -
Returns the result of dividing this value's number by
other
. -
operator <(
CssValue other) → bool -
Returns whether this value's number is less than that of
other
. -
operator <=(
CssValue other) → bool -
Returns whether this value's number is less than or equal to that of
other
. -
operator ==(
dynamic other) → bool -
Returns whether this value's number and unit are equal to that of
other
.override -
operator >(
CssValue other) → bool -
Returns whether this value's number is greater than that of
other
. -
operator >=(
CssValue other) → bool -
Returns whether this value's number is greater than or equal to that of
other
. -
operator unary-(
) → CssValue - Returns a new CssValue with this value's unit and the negation of this value's number.