PlaceProvider constructor

PlaceProvider(
  1. String apiKey,
  2. String? proxyBaseUrl,
  3. Client? httpClient,
  4. Map<String, dynamic> apiHeaders,
)

Implementation

PlaceProvider(
  String apiKey,
  String? proxyBaseUrl,
  Client? httpClient,
  Map<String, dynamic> apiHeaders,
) {
  places = GoogleMapsPlaces(
    apiKey: apiKey,
    baseUrl: proxyBaseUrl,
    httpClient: httpClient,
    apiHeaders: apiHeaders as Map<String, String>?,
  );

  geocoding = GoogleMapsGeocoding(
    apiKey: apiKey,
    baseUrl: proxyBaseUrl,
    httpClient: httpClient,
    apiHeaders: apiHeaders as Map<String, String>?,
  );
}