EndlessStreamingService.viaApiKey constructor

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

Creates a EndlessStreamingService interface using a API keys.

Implementation

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