getVisibleRegion method
Implementation
Future<LatLngBounds> getVisibleRegion({
required int mapId,
}) async {
final Map<String, dynamic> latLngBounds = await setChannel(mapId)
.invokeMapMethod<String, dynamic>(Method.MapGetVisibleRegion)
as Map<String, dynamic>;
final LatLng southwest = LatLng.fromJson(latLngBounds[Param.southwest]);
final LatLng northeast = LatLng.fromJson(latLngBounds[Param.northeast]);
return LatLngBounds(northeast: northeast, southwest: southwest);
}