midX property

double midX
latefinal

Implementation

late final double midX = boundary.x + boundary.width / 2;