operator unary- method

  1. @override
Radius operator unary-()
override

Unary negation operator.

Returns a Radius with the distances negated.

Radiuses with negative values aren't geometrically meaningful, but could occur as part of expressions. For example, negating a radius of one pixel and then adding the result to another radius is equivalent to subtracting a radius of one pixel from the other.

Implementation

@override
Radius operator -() => SharpRadius(
      cornerRadius: -cornerRadius,
      sharpRatio: sharpRatio,
    );