getVisibleRegion method
Return LatLngBounds
defining the region that is visible in a map.
Implementation
Future<LatLngBounds> getVisibleRegion() async {
late LatLngBounds _bounds;
if (Platform.isIOS) {
appleMaps.LatLngBounds appleBounds =
await this.appleController!.getVisibleRegion();
_bounds = LatLngBounds._fromAppleLatLngBounds(appleBounds);
} else if (Platform.isAndroid) {
googleMaps.LatLngBounds googleBounds =
await this.googleController!.getVisibleRegion();
_bounds = LatLngBounds._fromGoogleLatLngBounds(googleBounds);
}
return _bounds;
}