operator + method

  1. @override
SharpBorderRadius operator +(
  1. BorderRadius other
)
override

Returns the sum of two BorderRadius objects.

Implementation

@override
SharpBorderRadius operator +(BorderRadius other) {
  if (other is SharpBorderRadius) {
    return SharpBorderRadius.only(
      topLeft: (topLeft + other.topLeft) as SharpRadius,
      topRight: (topRight + other.topRight) as SharpRadius,
      bottomLeft: (bottomLeft + other.bottomLeft) as SharpRadius,
      bottomRight: (bottomRight + other.bottomRight) as SharpRadius,
    );
  }
  return this;
}