horizontalCenter property

double get horizontalCenter

The x-coordinate of the horizontal center of this rectangle.

Implementation

double get horizontalCenter => left + width / 2;