moveToLocation method

void moveToLocation(
  1. LatLng latLng
)

Moves the camera to the provided location and updates other UI features to match the location.

Implementation

void moveToLocation(LatLng latLng) {
  this.mapController.future.then((controller) {
    controller.animateCamera(
      CameraUpdate.newCameraPosition(
          CameraPosition(target: latLng, zoom: 15.0)),
    );
  });

  setMarker(latLng);

  reverseGeocodeLatLng(latLng);

  getNearbyPlaces(latLng);
}