getCenter method

Mappoint getCenter()

Returns the center point of the rectangle.

Implementation

Mappoint getCenter() {
  if (_center != null) return _center!;
  _center = Mappoint((_rect.left + _rect.right) / 2, (_rect.top + _rect.bottom) / 2);
  return _center!;
}