VoiceAgentComponentStates constructor
VoiceAgentComponentStates({
- ComponentLifecycleState? sttState,
- ComponentLifecycleState? llmState,
- ComponentLifecycleState? ttsState,
- ComponentLifecycleState? vadState,
- bool? ready,
- bool? anyLoading,
- ComponentLifecycleState? wakewordState,
- String? errorMessage,
Implementation
factory VoiceAgentComponentStates({
$0.ComponentLifecycleState? sttState,
$0.ComponentLifecycleState? llmState,
$0.ComponentLifecycleState? ttsState,
$0.ComponentLifecycleState? vadState,
$core.bool? ready,
$core.bool? anyLoading,
$0.ComponentLifecycleState? wakewordState,
$core.String? errorMessage,
}) {
final result = create();
if (sttState != null) result.sttState = sttState;
if (llmState != null) result.llmState = llmState;
if (ttsState != null) result.ttsState = ttsState;
if (vadState != null) result.vadState = vadState;
if (ready != null) result.ready = ready;
if (anyLoading != null) result.anyLoading = anyLoading;
if (wakewordState != null) result.wakewordState = wakewordState;
if (errorMessage != null) result.errorMessage = errorMessage;
return result;
}