radius property

double get radius

Get the radius of the circle before scaling.

Implementation

double get radius {
  return min(size.x, size.y) / 2;
}
set radius (double value)

Set the radius of the circle (and therefore the size).

Implementation

set radius(double value) {
  size.setValues(value * 2, value * 2);
}