SpeechRecognitionAlternative constructor

SpeechRecognitionAlternative({
  1. String? transcript,
  2. double? confidence,
  3. Iterable<WordInfo>? words,
})

Implementation

factory SpeechRecognitionAlternative({
  $core.String? transcript,
  $core.double? confidence,
  $core.Iterable<WordInfo>? words,
}) {
  final $result = create();
  if (transcript != null) {
    $result.transcript = transcript;
  }
  if (confidence != null) {
    $result.confidence = confidence;
  }
  if (words != null) {
    $result.words.addAll(words);
  }
  return $result;
}