operator unary- method

  1. @override
SharpBorderRadius operator unary-()
override

Returns the BorderRadius object with each corner negated.

This is the same as multiplying the object by -1.0.

Implementation

@override
SharpBorderRadius operator -() {
  return SharpBorderRadius.only(
    topLeft: (-topLeft) as SharpRadius,
    topRight: (-topRight) as SharpRadius,
    bottomLeft: (-bottomLeft) as SharpRadius,
    bottomRight: (-bottomRight) as SharpRadius,
  );
}