EndlessStreamingServiceBeta.viaApiKey constructor

EndlessStreamingServiceBeta.viaApiKey(
  1. String apiKey, {
  2. String? cloudSpeechEndpoint,
})

Creates a EndlessStreamingService interface using a API keys.

Implementation

factory EndlessStreamingServiceBeta.viaApiKey(String apiKey,
        {String? cloudSpeechEndpoint}) =>
    EndlessStreamingServiceBeta._(
        CallOptions(metadata: {'X-goog-api-key': '$apiKey'}),
        cloudSpeechEndpoint: cloudSpeechEndpoint);