isPx property

bool get isPx

Returns true if unit is of type px.

Implementation

bool get isPx => unit == CSSUnit.px;