StreamingRecognitionResult constructor

StreamingRecognitionResult({
  1. Iterable<SpeechRecognitionAlternative>? alternatives,
  2. bool? isFinal,
  3. double? stability,
  4. Duration? resultEndTime,
  5. int? channelTag,
  6. String? languageCode,
})

Implementation

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