getZoomLevel method
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!.isZoomDefined(),
'Zoom level should not be null. Is the map correctly initialized?',
);
return _googleMap!.zoom.toDouble();
}