applyToParams method
Apply authentication settings to header and query params.
Implementation
@override
void applyToParams(
List<QueryParam> queryParams, Map<String, dynamic> headerParams) {
String? value;
if (apiKeyPrefix != null) {
value = '$apiKeyPrefix $_apiKey';
} else {
value = _apiKey;
}
if (location == 'query' && value != null) {
queryParams.add(QueryParam(paramName, value));
} else if (location == 'header' && value != null) {
headerParams[paramName] = value;
}
}