centerX property

int get centerX

Implementation

int get centerX => legend ? ((width - legendWidth) / 2).floor() : (width / 2).floor();