setApiKey method

void setApiKey(
  1. String? key
)

Replace the API key without rebuilding the client.

Implementation

void setApiKey(String? key) =>
    _transport.config = _transport.config.copyWith(apiKey: key);