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