getZoomLevel method

Future<double> getZoomLevel()

Returns the zoom level of the current viewport.

Implementation

Future<double> getZoomLevel() async {
  assert(_googleMap != null, 'Cannot get zoom level of a null map.');
  assert(_googleMap!.zoom != null,
      'Zoom level should not be null. Is the map correctly initialized?');

  return _googleMap!.zoom!.toDouble();
}