newLatLngZoom static method

dynamic newLatLngZoom(
  1. LatLng latLng,
  2. double zoom
)

Returns a camera update that moves the camera target to the specified geographical location and zoom level.

Implementation

static newLatLngZoom(LatLng latLng, double zoom) {
  if (Platform.isIOS) {
    return appleMaps.CameraUpdate.newLatLngZoom(latLng.appleLatLng, zoom);
  } else if (Platform.isAndroid) {
    return googleMaps.CameraUpdate.newLatLngZoom(latLng.googleLatLng, zoom);
  }
}