operator unary- method

  1. @override
BorderRadiusDirectional operator unary-()
override

Returns the BorderRadiusDirectional object with each corner negated.

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

Implementation

@override
BorderRadiusDirectional operator -() {
  return BorderRadiusDirectional.only(
    topStart: -topStart,
    topEnd: -topEnd,
    bottomStart: -bottomStart,
    bottomEnd: -bottomEnd,
  );
}