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) {
  mapKey.currentState?.mapController.future.then((controller) {
    controller.animateCamera(
      CameraUpdate.newCameraPosition(
        CameraPosition(
          target: latLng,
          zoom: 16,
        ),
      ),
    );
  });

  reverseGeocodeLatLng(latLng);

  getNearbyPlaces(latLng);
}