SpeechRecognitionResult constructor

SpeechRecognitionResult({
  1. Iterable<SpeechRecognitionAlternative>? alternatives,
  2. int? channelTag,
  3. Duration? resultEndTime,
  4. String? languageCode,
})

Implementation

factory SpeechRecognitionResult({
  $core.Iterable<SpeechRecognitionAlternative>? alternatives,
  $core.int? channelTag,
  $3.Duration? resultEndTime,
  $core.String? languageCode,
}) {
  final $result = create();
  if (alternatives != null) {
    $result.alternatives.addAll(alternatives);
  }
  if (channelTag != null) {
    $result.channelTag = channelTag;
  }
  if (resultEndTime != null) {
    $result.resultEndTime = resultEndTime;
  }
  if (languageCode != null) {
    $result.languageCode = languageCode;
  }
  return $result;
}