GoogleGeocodingApi constructor
GoogleGeocodingApi(})
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,
],
);