radius property

  1. @override
double get radius
override

Radius of the web in pixels: half the smaller side of the content rectangle.

Implementation

@override
double get radius {
  final content = viewPortHandler.contentRect;
  return math.min(content.width() / 2, content.height() / 2);
}