BatchRecognizeResults constructor

BatchRecognizeResults({
  1. Iterable<SpeechRecognitionResult>? results,
  2. RecognitionResponseMetadata? metadata,
})

Implementation

factory BatchRecognizeResults({
  $core.Iterable<SpeechRecognitionResult>? results,
  RecognitionResponseMetadata? metadata,
}) {
  final $result = create();
  if (results != null) {
    $result.results.addAll(results);
  }
  if (metadata != null) {
    $result.metadata = metadata;
  }
  return $result;
}