operator ~/ method

  1. @override
SharpRadius operator ~/(
  1. double operand
)
override

Integer (truncating) division operator.

Returns a radius whose coordinates are the coordinates of the left-hand-side operand (a radius) divided by the scalar right-hand-side operand (a double), rounded towards zero.

Implementation

@override
SharpRadius operator ~/(double operand) => SharpRadius(
      cornerRadius: (cornerRadius ~/ operand).toDouble(),
      sharpRatio: (sharpRatio ~/ operand).toDouble(),
    );