operator unary- method

Quantity operator unary-()

The unary minus operator returns a Quantity whose value is the negative of this Quantity's value.

Implementation

Quantity operator -() => dimensions.toQuantity(valueSI * -1, preferredUnits, _ur);