getCenter method

double getCenter()

Implementation

double getCenter() => (getLeft() + getRight()) / 2;