center property

Coordinate get center

Get the center Point of the BoundingBox.

Example:

BoundingBox(1, 2, 3, 4).center; // Coordinate(2, 3)

Implementation

Coordinate get center =>
    Coordinate((minLat + maxLat) / 2, (minLong + maxLong) / 2);