operator unary- method

  1. @override
BorderRadius operator unary- ()
override

Returns the BorderRadius object with each corner negated.

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

Implementation

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