midY property

double midY
latefinal

Implementation

late final double midY = boundary.y + boundary.height / 2;