setApiKey method

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

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;
  }
}