getVisibleRegion method
Returns the LatLngBounds
of the current viewport.
Implementation
Future<LatLngBounds> getVisibleRegion() async {
assert(_googleMap != null, 'Cannot get the visible region of a null map.');
final gmaps.LatLngBounds bounds =
await Future<gmaps.LatLngBounds?>.value(_googleMap!.bounds) ??
_nullGmapsLatLngBounds;
return _gmLatLngBoundsTolatLngBounds(bounds);
}