SpeechRecognitionResult constructor
SpeechRecognitionResult({
- Iterable<
SpeechRecognitionAlternative> ? alternatives, - int? channelTag,
- Duration? resultEndTime,
- 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;
}