centerX property

double get centerX

The x-coordinate of the center of the rectangle. Calculated as left + width / 2.

Implementation

double get centerX => left + width / 2;