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