GoogleWebService constructor
GoogleWebService({})
Implementation
GoogleWebService({
String? apiKey,
required String apiPath,
String? baseUrl,
Client? httpClient,
Map<String, String>? apiHeaders,
}) : _httpClient = httpClient ?? Client(),
_apiKey = apiKey,
_apiHeaders = apiHeaders {
Uri uri = Uri.parse(NeomMapsUrls.kGMapsUrl);
if (baseUrl != null) {
uri = Uri.parse(baseUrl);
}
_url = uri.replace(path: '${uri.path}$apiPath');
}