setApiKey method

void setApiKey(
  1. String name,
  2. String apiKey
)

Implementation

void setApiKey(String name, String apiKey) {
  if (dio.interceptors.any((i) => i is ApiKeyAuthInterceptor)) {
    (dio.interceptors.firstWhere((element) => element is ApiKeyAuthInterceptor) as ApiKeyAuthInterceptor).apiKeys[name] = apiKey;
  }
}