getCenter method

LatLng? getCenter()

Returns the current center coordinates of the map.

Implementation

LatLng? getCenter() {
  return cameraPosition?.target;
}