centerX property

double get centerX

The center x coordinate.

Implementation

double get centerX => x + width / 2;