GoogleGeocodingApi constructor Null safety

GoogleGeocodingApi(
  1. String apiKey,
  2. {bool isLogged = false}
)

Implementation

GoogleGeocodingApi(String apiKey, {bool isLogged = false})
    : _dio = Dio()
        ..interceptors.addAll([
          ApiKeyInterceptor(apiKey),
          if (isLogged)
            LogInterceptor(
              responseBody: true,
              requestBody: true,
              requestHeader: true,
              responseHeader: false,
            ),
        ]);