centroid property

  1. @override
Point<double> get centroid
override

The mathematical center of mass of the shape.

Implementation

@override
Point<double> get centroid => Point(x: _center.x.toDouble(), y: _center.y.toDouble());