PlaceOptions.googleMapService constructor

PlaceOptions.googleMapService({
  1. required String apiKey,
})

Implementation

factory PlaceOptions.googleMapService({
  required String apiKey, // Required API key for Google Maps Places API
}) {
  // Create a GoogleMapsPlaceService object with the provided API key
  return PlaceOptions(
    repository: GoogleMapsPlaceService(
      googleMapsPlaces: GoogleMapsPlaces(apiKey: apiKey),
    ),
  );
}