GoogleGeocodingApi constructor

GoogleGeocodingApi(
  1. String apiKey, {
  2. bool isLogged = false,
  3. Iterable<Interceptor>? interceptors,
  4. Dio? dio,
})

Implementation

GoogleGeocodingApi(
  String apiKey, {
  bool isLogged = false,
  Iterable<Interceptor>? interceptors,
  Dio? dio,
}) : _dio = (dio ?? Dio())
        ..interceptors.addAll(
          [
            ApiKeyInterceptor(apiKey),
            if (isLogged)
              LogInterceptor(
                responseBody: true,
                requestBody: true,
                requestHeader: true,
                responseHeader: false,
              ),
            if (interceptors != null) ...interceptors,
          ],
        );